From de07a41fde832ba247a0ef2cc62d371af8e82607 Mon Sep 17 00:00:00 2001 From: Graham Date: Wed, 5 Jan 2022 21:28:12 +0000 Subject: [PATCH] Add JUnit dependencies to Java modules Not really used for anything yet, but Gradle moans because xtea-plugin/src/test/ exists and it can't find the JUnit engine. Signed-off-by: Graham --- build.gradle.kts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 209c14bf..1f15ce61 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -110,6 +110,17 @@ configure(subprojects.filter { it.isFree }) { toolVersion = "0.8.7" } + plugins.withType { + dependencies { + val testImplementation by configurations + testImplementation(libs.junit.api) + + val testRuntimeOnly by configurations + testRuntimeOnly(libs.junit.engine) + testRuntimeOnly(libs.junit.launcher) + } + } + plugins.withType { apply(plugin = "org.jetbrains.dokka") apply(plugin = "org.jmailen.kotlinter")