Skip to content

fix(publish): promote to Maven Central once per release, not once per module - #191

Merged
nthmost-orkes merged 1 commit into
mainfrom
fix/promote-once-per-release
Nov 24, 2026
Merged

nthmost-orkes merged 1 commit into
mainfrom
fix/promote-once-per-release

Conversation

@chrishagglund-ship-it

@chrishagglund-ship-it chrishagglund-ship-it commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

What changed

  • A release now promotes the staging repository to Maven Central once, after every module has uploaded.
  • Before, each of the 6 published modules promoted the shared repository right after its own upload.
  • One root task, promoteToMavenCentral, replaces the per-module task that PublishConfigPlugin created.
  • publish-release.yml runs ./gradlew publish promoteToMavenCentral in one invocation. mustRunAfter makes the promote run last.
  • publish alone no longer promotes.

Why

How to test

  • On this branch: ./gradlew publish promoteToMavenCentral --dry-run -PmavenCentral -Pversion=6.0.3.rc1
  • The plan lists the 6 module publish tasks, then one :promoteToMavenCentral.
  • On main: ./gradlew publish --dry-run -PmavenCentral -Pversion=6.0.3.rc1
  • The plan lists 6 promoteToMavenCentral tasks, one after each module's publish.
  • After the next release, the publish log shows one "Promoting repository" line.

Notes

  • The promote still fails the build on a non-200 response.
  • The workflow now passes -PmavenCentral without a value. The old value came from a workflow_dispatch input that a release event never sets.

🤖 Generated with Claude Code

@chrishagglund-ship-it chrishagglund-ship-it self-assigned this Nov 24, 2026
… 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
chrishagglund-ship-it force-pushed the fix/promote-once-per-release branch from b6b11c3 to 1d87c5b Compare November 24, 2026 19:00

@nthmost-orkes nthmost-orkes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, sorry didn't mean to overlook this, trying to catch up on all of the Maven Central related backlog

@nthmost-orkes
nthmost-orkes merged commit df25057 into main Nov 24, 2026
6 checks passed
@nthmost-orkes
nthmost-orkes deleted the fix/promote-once-per-release branch November 24, 2026 22:21
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