From eae51a6df932ec0f0634e10d810fa213b789b36b Mon Sep 17 00:00:00 2001 From: Simon Marquis Date: Sun, 13 Oct 2024 10:01:21 +0100 Subject: [PATCH] [Fix] Add missing unit test dependency for JVM modules `:core:common` module would not be able to run its unit test: `:core:common:test` Related to: #1546 --- .../convention/src/main/kotlin/JvmLibraryConventionPlugin.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build-logic/convention/src/main/kotlin/JvmLibraryConventionPlugin.kt b/build-logic/convention/src/main/kotlin/JvmLibraryConventionPlugin.kt index 35932c835..652409db6 100644 --- a/build-logic/convention/src/main/kotlin/JvmLibraryConventionPlugin.kt +++ b/build-logic/convention/src/main/kotlin/JvmLibraryConventionPlugin.kt @@ -17,6 +17,8 @@ import com.google.samples.apps.nowinandroid.configureKotlinJvm import org.gradle.api.Plugin import org.gradle.api.Project +import org.gradle.kotlin.dsl.dependencies +import org.gradle.kotlin.dsl.kotlin class JvmLibraryConventionPlugin : Plugin { override fun apply(target: Project) { @@ -26,6 +28,9 @@ class JvmLibraryConventionPlugin : Plugin { apply("nowinandroid.android.lint") } configureKotlinJvm() + dependencies { + add("testImplementation", kotlin("test")) + } } } }