diff options
author | Linnea Gräf <nea@nea.moe> | 2024-11-14 02:14:48 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-11-14 02:14:48 +0100 |
commit | de24bd3786441914c8071092274ac160cc2c02c3 (patch) | |
tree | 9fbf620f23748622be6f29e6d9c2214d95558c2f /build.gradle.kts | |
parent | ed8eb00566a5e3b7f2d5564d7977a4b3ec8fe5b3 (diff) | |
download | profunctor-codecs-java-de24bd3786441914c8071092274ac160cc2c02c3.tar.gz profunctor-codecs-java-de24bd3786441914c8071092274ac160cc2c02c3.tar.bz2 profunctor-codecs-java-de24bd3786441914c8071092274ac160cc2c02c3.zip |
Add tests
Diffstat (limited to 'build.gradle.kts')
-rw-r--r-- | build.gradle.kts | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 07e279f..29f3043 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,7 +12,15 @@ allprojects { dependencies { api("org.jspecify:jspecify:1.0.0") } - -tasks.test { - useJUnitPlatform() +allprojects { + afterEvaluate { + if (project.plugins.hasPlugin(JavaBasePlugin::class.java)) + dependencies { + testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1") + testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1") + } + } + tasks.withType(Test::class) { + useJUnitPlatform() + } }
\ No newline at end of file |