Skip to content

Broaden generateChangelog mustRunAfter to all subproject tasks#588

Merged
wmoustafa merged 1 commit intolinkedin:masterfrom
YogeshKothari26:fix-release-changelog-gradle8-v2
Mar 25, 2026
Merged

Broaden generateChangelog mustRunAfter to all subproject tasks#588
wmoustafa merged 1 commit intolinkedin:masterfrom
YogeshKothari26:fix-release-changelog-gradle8-v2

Conversation

@YogeshKothari26
Copy link
Copy Markdown
Contributor

Summary

Follow-up to #586. The previous fix only listed 5 specific task names, but the release workflow runs additional tasks (javadoc, javadocJar, signJavaLibraryPublication, sourcesJar, etc.) that also conflict with generateChangelog under Gradle 8's strict task dependency validation.

This fix uses mustRunAfter(subprojects.collect { it.tasks }) to cover all subproject tasks — no more adding individual task names as new conflicts are discovered.

Test plan

  • ./gradlew spotlessCheck passes
  • ./gradlew githubRelease --dry-run passes
  • Cannot fully test publishToSonatype locally (requires Sonatype credentials), but the fix is structurally complete — it covers all subproject tasks, not a subset

The previous fix (linkedin#586) only listed 5 specific task names, but the
release workflow runs additional tasks (javadoc, javadocJar,
signJavaLibraryPublication, sourcesJar, etc.) that also conflict.
Use mustRunAfter(subprojects.collect { it.tasks }) to cover all
current and future subproject tasks.

https://docs.gradle.org/8.6/userguide/validation_problems.html#implicit_dependency
@wmoustafa wmoustafa merged commit 3b2d5c9 into linkedin:master Mar 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants