Repository navigation
fix(publish): promote to Maven Central once per release, not once per module - #191
Merged
Merged
Conversation
… module PublishConfigPlugin created promoteToMavenCentral in every module that applies it and made it finalize that module's publish. All six modules upload into the one shared org.conductoross--default-repository, so each release promoted it six times: six Central deployments against the org's monthly release quota, with the first five running before the remaining modules had uploaded. The v6.0.3.rc1 publish log shows six "Promoting repository" lines for the same key. Move the task to one root-level task that mustRunAfter every module's publish, and run "publish promoteToMavenCentral" in one invocation in publish-release.yml. This mirrors conductor-oss/conductor#1826. The promote still fails the build on a non-200 response. Also pass -PmavenCentral without a value. The old value came from a workflow_dispatch input that a release event never sets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chrishagglund-ship-it
force-pushed
the
fix/promote-once-per-release
branch
from
November 24, 2026 19:00
b6b11c3 to
1d87c5b
Compare
nthmost-orkes
approved these changes
Nov 24, 2026
nthmost-orkes
left a comment
Contributor
There was a problem hiding this comment.
great, sorry didn't mean to overlook this, trying to catch up on all of the Maven Central related backlog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
promoteToMavenCentral, replaces the per-module task thatPublishConfigPlugincreated.publish-release.ymlruns./gradlew publish promoteToMavenCentralin one invocation.mustRunAftermakes the promote run last.publishalone no longer promotes.Why
org.conductoross--default-repository.v6.0.3.rc1publish log shows 6 promotes of the same repository.How to test
./gradlew publish promoteToMavenCentral --dry-run -PmavenCentral -Pversion=6.0.3.rc1publishtasks, then one:promoteToMavenCentral.main:./gradlew publish --dry-run -PmavenCentral -Pversion=6.0.3.rc1promoteToMavenCentraltasks, one after each module'spublish.Notes
-PmavenCentralwithout a value. The old value came from aworkflow_dispatchinput that a release event never sets.🤖 Generated with Claude Code