Skip to content

ci: Automated Release to Maven Central Repository using JReleaser #2313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 7, 2025

Conversation

SrinivasanTarget
Copy link
Member

This pull request updates the publishing process for the project to use JReleaser and revises the corresponding documentation. The most important changes include modifying the GitHub Actions workflow to integrate JReleaser and updating the release guide to reflect the new publishing steps.

Workflow updates for JReleaser integration:

  • .github/workflows/publish.yml: Replaced Maven-specific environment variables with JReleaser-specific variables and added a new jreleaserDeploy step to the workflow.

Documentation updates:

  • docs/release.md: Updated the release guide to replace manual Sonatype Nexus steps with instructions for using the Maven Central Repository via JReleaser.

SrinivasanTarget and others added 9 commits July 1, 2025 12:01
Co-authored-by: Saikrishna321 <saikrishna321@yahoo.com>
Co-authored-by: Saikrishna321 <saikrishna321@yahoo.com>
Co-authored-by: Saikrishna321 <saikrishna321@yahoo.com>
Co-authored-by: Saikrishna321 <saikrishna321@yahoo.com>
Co-authored-by: Saikrishna321 <saikrishna321@yahoo.com>
Co-authored-by: Saikrishna321 <saikrishna321@yahoo.com>
Co-authored-by: Saikrishna321 <saikrishna321@yahoo.com>
Co-authored-by: Saikrishna321 <saikrishna321@yahoo.com>
Co-authored-by: Saikrishna321 <saikrishna321@yahoo.com>
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR replaces the manual Maven Central staging steps with an automated JReleaser workflow and updates the release documentation accordingly.

  • Integrate JReleaser into the GitHub Actions pipeline (jreleaserDeploy step)
  • Remove legacy Maven/PGP env vars and add JReleaser-specific secrets
  • Revise docs/release.md to guide maintainers through the new publishing UI

Reviewed Changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.

File Description
docs/release.md Removed Sonatype Nexus steps and added instructions for central.sonatype.com
.github/workflows/publish.yml Swapped Maven env vars for JReleaser env vars and added jreleaserDeploy
Comments suppressed due to low confidence (3)

.github/workflows/publish.yml:21

  • [nitpick] The secret name for the GPG public key is 'SIGNING_PUBLIC_KEY' while the other JReleaser secrets use a 'JRELEASER_' prefix (e.g., JRELEASER_SIGNING_KEY). Consider renaming them consistently to avoid confusion.
          JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.SIGNING_PUBLIC_KEY }}

.github/workflows/publish.yml:27

  • [nitpick] Running both './gradlew publish' and './gradlew jreleaserDeploy' might be redundant since JReleaser can handle the full deployment. Consider removing the initial publish step or documenting why both are necessary.
          ./gradlew publish

docs/release.md:17

  • [nitpick] The list numbering resets to '1.' after step 15, which may confuse readers. Consider using automatic markdown numbering or updating numbers sequentially for clarity.
1. Open [Maven Central Repository](https://central.sonatype.com/) in your browser.

@mykola-mokhnach mykola-mokhnach changed the title Fix: Automated Release to Maven Central Repository using JReleaser ci: Automated Release to Maven Central Repository using JReleaser Jul 7, 2025
@mykola-mokhnach mykola-mokhnach merged commit b946db4 into master Jul 7, 2025
7 of 8 checks passed
@mykola-mokhnach mykola-mokhnach deleted the release/mavenCentral branch July 7, 2025 07:43
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.

3 participants