From 4c6ea8416baa16c741737310571f6cac08271417 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Sat, 21 Dec 2024 15:10:08 -0800 Subject: [PATCH] move junit platform dep to -server and -api --- build.gradle.kts | 4 ---- paper-api/build.gradle.kts | 1 + paper-server/build.gradle.kts | 1 + 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index f21b88e818..75fc6a21af 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -25,10 +25,6 @@ subprojects { } } - dependencies { - "testRuntimeOnly"("org.junit.platform:junit-platform-launcher") - } - tasks.withType().configureEach { isPreserveFileTimestamps = false isReproducibleFileOrder = true diff --git a/paper-api/build.gradle.kts b/paper-api/build.gradle.kts index 7dc323ba31..7dd682b4b9 100644 --- a/paper-api/build.gradle.kts +++ b/paper-api/build.gradle.kts @@ -92,6 +92,7 @@ dependencies { testImplementation("org.mockito:mockito-core:5.14.1") testImplementation("org.ow2.asm:asm-tree:9.7.1") mockitoAgent("org.mockito:mockito-core:5.14.1") { isTransitive = false } // Paper - configure mockito agent that is needed in newer java versions + testRuntimeOnly("org.junit.platform:junit-platform-launcher") } // Paper start diff --git a/paper-server/build.gradle.kts b/paper-server/build.gradle.kts index f36c81c083..266795c487 100644 --- a/paper-server/build.gradle.kts +++ b/paper-server/build.gradle.kts @@ -13,6 +13,7 @@ val paperMavenPublicUrl = "https://repo.papermc.io/repository/maven-public/" dependencies { mache("io.papermc:mache:1.21.4+build.6") paperclip("io.papermc:paperclip:3.0.3") + testRuntimeOnly("org.junit.platform:junit-platform-launcher") } paperweight {