From 1b2a2166415de50f2d18b054cd35c6db47d3c980 Mon Sep 17 00:00:00 2001 From: Neel Doshi Date: Sat, 6 Jul 2024 10:34:55 +0530 Subject: [PATCH] Deps: Migrated `squareupKotlinPoet` to Version Catalog --- build.gradle | 1 - gradle/libs.versions.toml | 3 +++ libs/processors/build.gradle | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 296e2fc9acdd..ee7c5ecb3af9 100644 --- a/build.gradle +++ b/build.gradle @@ -39,7 +39,6 @@ ext { googleAutoServiceVersion = '1.0.1' googlePlayServicesCodeScannerVersion = '16.0.0-beta3' philjayMpAndroidChartVersion = 'v3.1.0' - squareupKotlinPoetVersion = '1.16.0' uCropVersion = '2.2.9' // other diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index eb6dd68071fd..551423ea91f9 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -55,6 +55,7 @@ mockitoAndroid = '4.5.1' mockitoKotlin = '4.1.0' screengrab = '2.1.1' soLoader = '0.10.5' +squareupKotlinPoet = '1.16.0' squareupMockWebServer = '4.12.0' squareupRetrofit = '2.9.0' volley = '1.2.1' @@ -174,6 +175,8 @@ lottie = { group = "com.airbnb.android", name = "lottie", version.ref ="lottie" lottie-compose = { group = "com.airbnb.android", name = "lottie-compose", version.ref ="lottie" } mockito-android = { group = "org.mockito", name = "mockito-android", version.ref ="mockitoAndroid" } mockito-kotlin = { group = "org.mockito.kotlin", name = "mockito-kotlin", version.ref ="mockitoKotlin" } +squareup-kotlinpoet = { group = "com.squareup", name = "kotlinpoet", version.ref ="squareupKotlinPoet" } +squareup-kotlinpoet-ksp = { group = "com.squareup", name = "kotlinpoet-ksp", version.ref ="squareupKotlinPoet" } squareup-okhttp-mockWebServer = { group = "com.squareup.okhttp3", name = "mockwebserver", version.ref ="squareupMockWebServer" } squareup-retrofit2 = { group = "com.squareup.retrofit2", name = "retrofit", version.ref ="squareupRetrofit" } volley = { group = "com.android.volley", name = "volley", version.ref = "volley" } diff --git a/libs/processors/build.gradle b/libs/processors/build.gradle index 51dbeb22e4cb..49545b3aaae3 100644 --- a/libs/processors/build.gradle +++ b/libs/processors/build.gradle @@ -9,8 +9,8 @@ targetCompatibility = JavaVersion.VERSION_1_8 dependencies { implementation project(":libs:annotations") - implementation "com.squareup:kotlinpoet:$squareupKotlinPoetVersion" - implementation "com.squareup:kotlinpoet-ksp:$squareupKotlinPoetVersion" + implementation libs.squareup.kotlinpoet + implementation libs.squareup.kotlinpoet.ksp implementation "com.google.devtools.ksp:symbol-processing-api:$gradle.ext.kspVersion" def kctVersion = "1.5.0"