build: use Hilt through buildscript classpath
This commit is contained in:
parent
6be8b75b50
commit
52cba5864d
2 changed files with 6 additions and 7 deletions
|
@ -2,6 +2,12 @@
|
||||||
* Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
|
* Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
|
||||||
* SPDX-License-Identifier: GPL-3.0-only
|
* SPDX-License-Identifier: GPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
buildscript {
|
||||||
|
repositories { mavenCentral() }
|
||||||
|
dependencies { classpath(libs.build.hilt) }
|
||||||
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("com.github.android-password-store.kotlin-common")
|
id("com.github.android-password-store.kotlin-common")
|
||||||
id("com.github.android-password-store.binary-compatibility")
|
id("com.github.android-password-store.binary-compatibility")
|
||||||
|
|
|
@ -11,13 +11,6 @@ pluginManagement {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
}
|
}
|
||||||
resolutionStrategy {
|
|
||||||
eachPlugin {
|
|
||||||
if (requested.id.id == "dagger.hilt.android.plugin") {
|
|
||||||
useModule("com.google.dagger:hilt-android-gradle-plugin:2.40.4")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
plugins {
|
plugins {
|
||||||
id("com.vanniktech.maven.publish") version "0.18.0" apply false
|
id("com.vanniktech.maven.publish") version "0.18.0" apply false
|
||||||
id("org.jetbrains.dokka") version "1.6.0" apply false
|
id("org.jetbrains.dokka") version "1.6.0" apply false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue