Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,9 @@ class CurseGradlePlugin implements Plugin<Project> {

uploadTask.mainArtifact = curseProject.mainArtifact

// At this stage, all artifacts should be in a state ready to upload
// ForgeGradle's reobf tasks are dependants of this
uploadTask.dependsOn project.tasks.getByName('assemble')

// Run after build if it's on the task graph. This is useful because if tests fail,
// Run after build. This is useful because if tests fail,
// the artifacts won't be uploaded
uploadTask.mustRunAfter project.tasks.getByName('build')
uploadTask.dependsOn project.tasks.getByName('build')

mainTask.dependsOn uploadTask
uploadTask.onlyIf { mainTask.enabled }
Expand Down