diff --git a/api/build.gradle b/api/build.gradle index 76be5909..54ebafee 100644 --- a/api/build.gradle +++ b/api/build.gradle @@ -43,7 +43,7 @@ dependencies { task simplifyArtifact(type: Copy) { // api module should be slim, and only contain mcsd's own api - dependsOn jar + dependsOn test, jar from jar.outputs.files.singleFile into "$rootDir/build/libs/" rename { n -> "mcsd-api.jar" } diff --git a/core/build.gradle b/core/build.gradle index d2432a4d..58b1655b 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -131,7 +131,7 @@ shadowJar { } task simplifyArtifact(type: Copy) { - dependsOn shadowJar + dependsOn test, shadowJar from shadowJar.outputs.files.singleFile into "$rootDir/build/libs/" rename { n -> "mcsd-core.jar" } diff --git a/fabric/build.gradle b/fabric/build.gradle index 3ad02d23..e4dbf08e 100644 --- a/fabric/build.gradle +++ b/fabric/build.gradle @@ -140,7 +140,7 @@ shadowJar { } task simplifyArtifact(type: Copy) { - dependsOn remappedShadowJar + dependsOn test, remappedShadowJar from remappedShadowJar.outputs.files.singleFile into "$rootDir/build/libs/" rename { n -> "mcsd-fabric.jar" } diff --git a/forge/build.gradle b/forge/build.gradle index 169b3400..9604f280 100644 --- a/forge/build.gradle +++ b/forge/build.gradle @@ -223,7 +223,7 @@ shadowJar { } task simplifyArtifact(type: Copy) { - dependsOn shadowJar + dependsOn test, shadowJar from shadowJar.outputs.files.singleFile into "$rootDir/build/libs/" rename { n -> "mcsd-forge.jar" } diff --git a/spigot/build.gradle b/spigot/build.gradle index c4d8d59f..24b24b25 100644 --- a/spigot/build.gradle +++ b/spigot/build.gradle @@ -38,7 +38,7 @@ tasks.register('testPlugin', Copy) { } task simplifyArtifact(type: Copy) { - dependsOn shadowJar + dependsOn test, shadowJar from shadowJar.outputs.files.singleFile into "$rootDir/build/libs/" rename { n -> "mcsd-spigot.jar" }