summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-12-03 12:24:32 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2021-12-03 12:59:58 +0530
commit52cba5864dad3f8e217ddb8e05138e8a9dd7199a (patch)
tree5b8c8308d1f80c4ab5e6e6629bd3f4b92b04ab69
parent6be8b75b5078007a4f8ac5d32d11fa99b9056da0 (diff)
build: use Hilt through buildscript classpath
-rw-r--r--build.gradle.kts6
-rw-r--r--settings.gradle.kts7
2 files changed, 6 insertions, 7 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 7b375b6b..e44d8c2b 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -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")
diff --git a/settings.gradle.kts b/settings.gradle.kts
index 5b91b26c..6c600dc7 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -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