From 52cba5864dad3f8e217ddb8e05138e8a9dd7199a Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 3 Dec 2021 12:24:32 +0530 Subject: build: use Hilt through buildscript classpath --- build.gradle.kts | 6 ++++++ settings.gradle.kts | 7 ------- 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 -- cgit v1.2.3