diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 1abc44bac..fdf99ce9d 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -122,7 +122,6 @@ dependencies { testDemoImplementation(libs.roborazzi) testDemoImplementation(projects.core.screenshotTesting) - androidTestImplementation(kotlin("test")) androidTestImplementation(projects.core.testing) androidTestImplementation(projects.core.dataTest) androidTestImplementation(projects.core.datastoreTest) @@ -130,6 +129,7 @@ dependencies { androidTestImplementation(libs.androidx.navigation.testing) androidTestImplementation(libs.androidx.compose.ui.test) androidTestImplementation(libs.hilt.android.testing) + androidTestImplementation(libs.kotlin.test) baselineProfile(projects.benchmarks) } diff --git a/build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.kt b/build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.kt index 71d818c0c..5e7eb712e 100644 --- a/build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.kt +++ b/build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.kt @@ -26,7 +26,6 @@ import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.kotlin.dsl.configure import org.gradle.kotlin.dsl.dependencies -import org.gradle.kotlin.dsl.kotlin class AndroidLibraryConventionPlugin : Plugin { override fun apply(target: Project) { @@ -53,8 +52,8 @@ class AndroidLibraryConventionPlugin : Plugin { disableUnnecessaryAndroidTests(target) } dependencies { - add("androidTestImplementation", kotlin("test")) - add("testImplementation", kotlin("test")) + add("androidTestImplementation", libs.findLibrary("kotlin.test").get()) + add("testImplementation", libs.findLibrary("kotlin.test").get()) add("implementation", libs.findLibrary("androidx.tracing.ktx").get()) } diff --git a/core/common/build.gradle.kts b/core/common/build.gradle.kts index 804abed49..6fc96a3fd 100644 --- a/core/common/build.gradle.kts +++ b/core/common/build.gradle.kts @@ -21,7 +21,7 @@ plugins { dependencies { implementation(libs.kotlinx.coroutines.core) - testImplementation(kotlin("test")) + testImplementation(libs.kotlin.test) testImplementation(libs.kotlinx.coroutines.test) testImplementation(libs.turbine) } diff --git a/core/testing/build.gradle.kts b/core/testing/build.gradle.kts index 01696d5e8..a0c115038 100644 --- a/core/testing/build.gradle.kts +++ b/core/testing/build.gradle.kts @@ -23,13 +23,13 @@ android { } dependencies { - api(libs.kotlinx.coroutines.test) api(projects.core.analytics) api(projects.core.common) api(projects.core.data) api(projects.core.model) api(projects.core.notifications) + api(libs.kotlinx.coroutines.test) implementation(libs.androidx.test.rules) implementation(libs.hilt.android.testing) diff --git a/lint/build.gradle.kts b/lint/build.gradle.kts index cfda9d64d..9c0b5677c 100644 --- a/lint/build.gradle.kts +++ b/lint/build.gradle.kts @@ -39,7 +39,8 @@ kotlin { dependencies { compileOnly(libs.kotlin.stdlib) compileOnly(libs.lint.api) + + testImplementation(libs.kotlin.test) testImplementation(libs.lint.checks) testImplementation(libs.lint.tests) - testImplementation(kotlin("test")) }