diff --git a/Core/build.gradle.kts b/Core/build.gradle.kts index 4a21c06..4387a28 100644 --- a/Core/build.gradle.kts +++ b/Core/build.gradle.kts @@ -35,15 +35,6 @@ publishing { } } -tasks.compileJava { - options.compilerArgs.add("-parameters") -} - -tasks.shadowJar { - archiveFileName.set("MinigameFramework.jar") -} - - dependencies { paperweight.paperDevBundle("1.20.4-R0.1-SNAPSHOT") @@ -57,8 +48,6 @@ dependencies { compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Core") compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Bukkit") - - testImplementation(platform("org.junit:junit-bom:5.9.1")) testImplementation("org.junit.jupiter:junit-jupiter") @@ -72,6 +61,20 @@ dependencies { } +tasks { + test { + useJUnitPlatform() + } + shadowJar { + relocate("fr.mrmicky.fastboard", "com.readutf.inari.core") + archiveFileName.set("MinigameFramework.jar") + } + + compileJava { + options.compilerArgs.add("-parameters") + } +} + java { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 @@ -79,11 +82,3 @@ java { languageVersion.set(JavaLanguageVersion.of(17)) } } - -tasks.test { - useJUnitPlatform() -} - -tasks.shadowJar { - relocate("fr.mrmicky.fastboard", "com.readutf.inari.core") -} \ No newline at end of file