Skip to content

Commit

Permalink
artifact depends on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
burdoto committed Apr 1, 2024
1 parent 235f33a commit 5113247
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion spigot/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down

0 comments on commit 5113247

Please sign in to comment.