Skip to content

Commit eae51a6

Browse files
authored
[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: android#1546
1 parent beb091d commit eae51a6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build-logic/convention/src/main/kotlin/JvmLibraryConventionPlugin.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
import com.google.samples.apps.nowinandroid.configureKotlinJvm
1818
import org.gradle.api.Plugin
1919
import org.gradle.api.Project
20+
import org.gradle.kotlin.dsl.dependencies
21+
import org.gradle.kotlin.dsl.kotlin
2022

2123
class JvmLibraryConventionPlugin : Plugin<Project> {
2224
override fun apply(target: Project) {
@@ -26,6 +28,9 @@ class JvmLibraryConventionPlugin : Plugin<Project> {
2628
apply("nowinandroid.android.lint")
2729
}
2830
configureKotlinJvm()
31+
dependencies {
32+
add("testImplementation", kotlin("test"))
33+
}
2934
}
3035
}
3136
}

0 commit comments

Comments
 (0)