Explicitly set build task as dependency

This commit is contained in:
JFronny 2021-10-09 13:31:50 +02:00
parent a77d6ef17c
commit 938416a039
No known key found for this signature in database
GPG Key ID: BEC5ACBBD4EE17E5
1 changed files with 2 additions and 2 deletions

View File

@ -262,7 +262,7 @@ dependencies {
}
}
task modrinth(type: TaskModrinthUpload, dependsOn: remapJar) {
task modrinth(type: TaskModrinthUpload, dependsOn: build) {
onlyIf {
ENV.MODRINTH_API_TOKEN
}
@ -291,7 +291,7 @@ curseforge {
mainArtifact(file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar"))
mainArtifact.displayName = "[${project.minecraft_version}] ${project.mod_version}"
afterEvaluate {
uploadTask.dependsOn(remapJar)
uploadTask.dependsOn(build)
}
}
options {