build: use Hilt through buildscript classpath

This commit is contained in:
Harsh Shandilya 2021-12-03 12:24:32 +05:30
parent 6be8b75b50
commit 52cba5864d
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 6 additions and 7 deletions

View file

@ -2,6 +2,12 @@
* Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
* SPDX-License-Identifier: GPL-3.0-only
*/
buildscript {
repositories { mavenCentral() }
dependencies { classpath(libs.build.hilt) }
}
plugins {
id("com.github.android-password-store.kotlin-common")
id("com.github.android-password-store.binary-compatibility")

View file

@ -11,13 +11,6 @@ pluginManagement {
mavenCentral()
gradlePluginPortal()
}
resolutionStrategy {
eachPlugin {
if (requested.id.id == "dagger.hilt.android.plugin") {
useModule("com.google.dagger:hilt-android-gradle-plugin:2.40.4")
}
}
}
plugins {
id("com.vanniktech.maven.publish") version "0.18.0" apply false
id("org.jetbrains.dokka") version "1.6.0" apply false