From 58c41ebb5312f6b29a80e27c16f1732ccf5c26cf Mon Sep 17 00:00:00 2001 From: Daniel Frett Date: Fri, 29 Sep 2023 12:04:34 -0600 Subject: [PATCH] centralize the kotlin-test dependency --- gradle/libs.versions.toml | 3 ++- library/account/build.gradle.kts | 1 - library/analytics/build.gradle.kts | 1 - library/db/build.gradle.kts | 1 - library/user-data/build.gradle.kts | 1 - ui/base-tool/build.gradle.kts | 1 - 6 files changed, 2 insertions(+), 6 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 02b230f5d6..c1a62432a0 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -167,6 +167,7 @@ kotlin-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-te kotlin-gradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" } kotlin-kover-gradlePlugin = { module = "org.jetbrains.kotlinx:kover-gradle-plugin", version.ref = "kotlinKover" } kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" } +kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" } ktlint-gradle = { module = "org.jlleitschuh.gradle:ktlint-gradle", version.ref = "ktlintGradle" } leakcanary = "com.squareup.leakcanary:leakcanary-android:2.12" lottie = { module = "com.airbnb.android:lottie", version.ref = "lottie" } @@ -211,7 +212,7 @@ androidx-compose = ["androidx-compose-runtime", "androidx-compose-ui", "androidx androidx-compose-debug = ["androidx-compose-ui-test-manifest", "androidx-compose-ui-tooling"] androidx-compose-testing = ["androidx-compose-ui-test"] common = ["kotlin-stdlib", "timber"] -test-framework = ["junit", "androidx-test-junit", "mockk", "robolectric"] +test-framework = ["junit", "kotlin-test", "androidx-test-junit", "mockk", "robolectric"] [plugins] firebase-appdistribution = { id = "com.google.firebase.appdistribution", version = "4.0.0" } diff --git a/library/account/build.gradle.kts b/library/account/build.gradle.kts index 4a0c7a7df7..6498ab441d 100644 --- a/library/account/build.gradle.kts +++ b/library/account/build.gradle.kts @@ -28,7 +28,6 @@ dependencies { ksp(libs.dagger.compiler) ksp(libs.hilt.compiler) - testImplementation(kotlin("test")) testImplementation(libs.kotlin.coroutines.test) testImplementation(libs.turbine) } diff --git a/library/analytics/build.gradle.kts b/library/analytics/build.gradle.kts index d3260d0bc8..20fb1996ff 100644 --- a/library/analytics/build.gradle.kts +++ b/library/analytics/build.gradle.kts @@ -45,6 +45,5 @@ dependencies { ksp(libs.dagger.compiler) ksp(libs.hilt.compiler) - testImplementation(kotlin("test")) testImplementation(libs.kotlin.coroutines.test) } diff --git a/library/db/build.gradle.kts b/library/db/build.gradle.kts index 5f5806f2fd..cb8172f2e2 100644 --- a/library/db/build.gradle.kts +++ b/library/db/build.gradle.kts @@ -40,7 +40,6 @@ dependencies { ksp(libs.dagger.compiler) ksp(libs.hilt.compiler) - testImplementation(kotlin("test")) testImplementation(libs.androidx.room.testing) testImplementation(libs.kotlin.coroutines.test) testImplementation(libs.turbine) diff --git a/library/user-data/build.gradle.kts b/library/user-data/build.gradle.kts index f5480851ed..e3c51e23b2 100644 --- a/library/user-data/build.gradle.kts +++ b/library/user-data/build.gradle.kts @@ -20,7 +20,6 @@ dependencies { ksp(libs.dagger.compiler) ksp(libs.hilt.compiler) - testImplementation(kotlin("test")) testImplementation(libs.kotlin.coroutines.test) testImplementation(libs.turbine) } diff --git a/ui/base-tool/build.gradle.kts b/ui/base-tool/build.gradle.kts index 1aeda69e2c..b9f3833a6a 100644 --- a/ui/base-tool/build.gradle.kts +++ b/ui/base-tool/build.gradle.kts @@ -81,7 +81,6 @@ dependencies { kapt(libs.hilt.compiler) testImplementation(kotlin("reflect")) - testImplementation(kotlin("test")) testImplementation(libs.androidx.arch.core.testing) testImplementation(libs.androidx.lifecycle.runtime.testing) testImplementation(libs.kotlin.coroutines.test)