From 9c2bf14074764e3303eb51042b38183520ab1838 Mon Sep 17 00:00:00 2001 From: Ahmed El-Helw Date: Thu, 25 Jan 2024 01:10:56 +0400 Subject: [PATCH] Share AGP and Kotlin versions with build-logic --- build-logic/convention/build.gradle.kts | 4 ++-- gradle/libs.versions.toml | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build-logic/convention/build.gradle.kts b/build-logic/convention/build.gradle.kts index 1464b5c323..191d051a97 100644 --- a/build-logic/convention/build.gradle.kts +++ b/build-logic/convention/build.gradle.kts @@ -5,8 +5,8 @@ plugins { group = "com.quran.labs.androidquran.buildlogic" dependencies { - compileOnly("com.android.tools.build:gradle:8.2.1") - compileOnly("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.22") + compileOnly(libs.android.gradlePlugin) + compileOnly(libs.kotlin.gradlePlugin) implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location)) } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7929e176d1..d7b11ebb32 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -172,6 +172,10 @@ truth = { module = "com.google.truth:truth", version.ref = "truthVersion" } turbine = { module = "app.cash.turbine:turbine-jvm", version.ref = "turbineVersion" } kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutinesVersion" } +# build-logic +android-gradlePlugin = { group = "com.android.tools.build", name = "gradle", version.ref = "agp" } +kotlin-gradlePlugin = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version.ref = "kotlin" } + [plugins] android-application = { id = "com.android.application", version.ref = "agp" } android-library = { id = "com.android.library", version.ref = "agp" }