From de24bd3786441914c8071092274ac160cc2c02c3 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Thu, 14 Nov 2024 02:14:48 +0100 Subject: Add tests --- build.gradle.kts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'build.gradle.kts') 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 -- cgit