Skip to content
This repository was archived by the owner on Jun 11, 2026. It is now read-only.

Commit 5113247

Browse files
committed
artifact depends on tests
1 parent 235f33a commit 5113247

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

api/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ dependencies {
4343

4444
task simplifyArtifact(type: Copy) {
4545
// api module should be slim, and only contain mcsd's own api
46-
dependsOn jar
46+
dependsOn test, jar
4747
from jar.outputs.files.singleFile
4848
into "$rootDir/build/libs/"
4949
rename { n -> "mcsd-api.jar" }

core/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ shadowJar {
131131
}
132132

133133
task simplifyArtifact(type: Copy) {
134-
dependsOn shadowJar
134+
dependsOn test, shadowJar
135135
from shadowJar.outputs.files.singleFile
136136
into "$rootDir/build/libs/"
137137
rename { n -> "mcsd-core.jar" }

fabric/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ shadowJar {
140140
}
141141

142142
task simplifyArtifact(type: Copy) {
143-
dependsOn remappedShadowJar
143+
dependsOn test, remappedShadowJar
144144
from remappedShadowJar.outputs.files.singleFile
145145
into "$rootDir/build/libs/"
146146
rename { n -> "mcsd-fabric.jar" }

forge/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ shadowJar {
223223
}
224224

225225
task simplifyArtifact(type: Copy) {
226-
dependsOn shadowJar
226+
dependsOn test, shadowJar
227227
from shadowJar.outputs.files.singleFile
228228
into "$rootDir/build/libs/"
229229
rename { n -> "mcsd-forge.jar" }

spigot/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ tasks.register('testPlugin', Copy) {
3838
}
3939

4040
task simplifyArtifact(type: Copy) {
41-
dependsOn shadowJar
41+
dependsOn test, shadowJar
4242
from shadowJar.outputs.files.singleFile
4343
into "$rootDir/build/libs/"
4444
rename { n -> "mcsd-spigot.jar" }

0 commit comments

Comments
 (0)