Skip to content
Merged
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
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,14 @@ publishing {
}
}
}
}

// With two publications (maven + shaded), both sign tasks write their .asc into build/libs, and each
// publish task reads from build/libs — so Gradle's strict validation flags an implicit dependency
// between publish and the *other* publication's sign task and fails the build. Order all publish
// tasks after all sign tasks to make the dependency explicit.
import org.gradle.api.publish.maven.tasks.AbstractPublishToMaven
import org.gradle.plugins.signing.Sign
tasks.withType(AbstractPublishToMaven).configureEach {
mustRunAfter(tasks.withType(Sign))
}
Loading