File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed
build-logic/convention/src/main/kotlin Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -123,14 +123,14 @@ dependencies {
123123 testDemoImplementation(libs.roborazzi)
124124 testDemoImplementation(projects.core.screenshotTesting)
125125
126- androidTestImplementation(kotlin(" test" ))
127126 androidTestImplementation(projects.core.testing)
128127 androidTestImplementation(projects.core.dataTest)
129128 androidTestImplementation(projects.core.datastoreTest)
130129 androidTestImplementation(libs.androidx.test.espresso.core)
131130 androidTestImplementation(libs.androidx.navigation.testing)
132131 androidTestImplementation(libs.androidx.compose.ui.test)
133132 androidTestImplementation(libs.hilt.android.testing)
133+ androidTestImplementation(libs.kotlin.test)
134134
135135 baselineProfile(projects.benchmarks)
136136}
Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ class AndroidLibraryConventionPlugin : Plugin<Project> {
5353 disableUnnecessaryAndroidTests(target)
5454 }
5555 dependencies {
56- add(" androidTestImplementation" , kotlin( " test" ))
57- add(" testImplementation" , kotlin( " test" ))
56+ add(" androidTestImplementation" , libs.findLibrary( " kotlin. test" ).get( ))
57+ add(" testImplementation" , libs.findLibrary( " kotlin. test" ).get( ))
5858
5959 add(" implementation" , libs.findLibrary(" androidx.tracing.ktx" ).get())
6060 }
Original file line number Diff line number Diff line change 1515 */
1616
1717import com.google.samples.apps.nowinandroid.configureKotlinJvm
18+ import com.google.samples.apps.nowinandroid.libs
1819import org.gradle.api.Plugin
1920import org.gradle.api.Project
2021import org.gradle.kotlin.dsl.dependencies
@@ -29,7 +30,7 @@ class JvmLibraryConventionPlugin : Plugin<Project> {
2930 }
3031 configureKotlinJvm()
3132 dependencies {
32- add(" testImplementation" , kotlin( " test" ))
33+ add(" testImplementation" , libs.findLibrary( " kotlin. test" ).get( ))
3334 }
3435 }
3536 }
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ kotlin {
3838dependencies {
3939 compileOnly(libs.kotlin.stdlib)
4040 compileOnly(libs.lint.api)
41+ testImplementation(libs.kotlin.test)
4142 testImplementation(libs.lint.checks)
4243 testImplementation(libs.lint.tests)
43- testImplementation(kotlin(" test" ))
4444}
You can’t perform that action at this time.
0 commit comments