Skip to content

Commit

Permalink
[Fix] Add missing unit test dependency for JVM modules
Browse files Browse the repository at this point in the history
`:core:common` module would not be able to run its unit test: `:core:common:test`

Related to: android#1546
  • Loading branch information
SimonMarquis authored Oct 13, 2024
1 parent beb091d commit eae51a6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Project> {
override fun apply(target: Project) {
Expand All @@ -26,6 +28,9 @@ class JvmLibraryConventionPlugin : Plugin<Project> {
apply("nowinandroid.android.lint")
}
configureKotlinJvm()
dependencies {
add("testImplementation", kotlin("test"))
}
}
}
}

0 comments on commit eae51a6

Please sign in to comment.