summaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-11-14 02:14:48 +0100
committerLinnea Gräf <nea@nea.moe>2024-11-14 02:14:48 +0100
commitde24bd3786441914c8071092274ac160cc2c02c3 (patch)
tree9fbf620f23748622be6f29e6d9c2214d95558c2f /build.gradle.kts
parented8eb00566a5e3b7f2d5564d7977a4b3ec8fe5b3 (diff)
downloadprofunctor-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.kts14
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