Skip to content

Conversation

@jnmt
Copy link
Collaborator

@jnmt jnmt commented Jul 14, 2025

Description

This PR configures Jreleaser to release artifacts in the new Maven Central.

Related issues and/or PRs

N/A

Changes made

  • Introduce Jreleaser

Checklist

The following is a best-effort checklist. If any items in this checklist are not applicable to this PR or are dependent on other, unmerged PRs, please still mark the checkboxes after you have read and understood each item.

  • I have commented my code, particularly in hard-to-understand areas.
  • I have updated the documentation to reflect the changes.
  • I have considered whether similar issues could occur in other products, components, or modules if this PR is for bug fixes.
  • Any remaining open issues linked to this PR are documented and up-to-date (Jira, GitHub, etc.).
  • Tests (unit, integration, etc.) have been added for the changes. Releasing snapshot from my local environment was successful
  • My changes generate no new warnings.
  • Any dependent changes in other PRs have been merged and published.

Additional notes (optional)

See inline comments for details.

@jnmt jnmt self-assigned this Jul 14, 2025
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @jnmt, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly refactors the project's build and release process by integrating JReleaser. The primary goal is to automate and streamline the deployment of artifacts to Maven Central, centralizing the configuration for both release and snapshot versions and removing the need for manual publishing and signing logic in individual subprojects.

Highlights

  • JReleaser Integration: The org.jreleaser Gradle plugin has been introduced and extensively configured in build.gradle to manage artifact releases.
  • Centralized Release Configuration: JReleaser is now responsible for deploying artifacts to Maven Central (via Sonatype) for releases and to Nexus2 for snapshots, including automatic signing of artifacts.
  • Simplified Subproject Publishing: The archive.gradle files for client, common, ledger, and rpc have been simplified by removing redundant Maven publishing and signing configurations, as these are now handled by JReleaser.
  • Gradle Wrapper Update: The Gradle wrapper version has been updated from 7.6.1 to 7.6.6 in gradle/wrapper/gradle-wrapper.properties.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This PR introduces JReleaser for Maven Central artifact releases. Version management is centralized, and JReleaser is configured for both release and snapshot deployments. Suggestions include reducing code duplication in build.gradle and removing redundancy in archive.gradle.

Copy link

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 manual Sonatype staging and signing in each module with a local staging-deploy directory and adds JReleaser to publish artifacts to Maven Central. It also bumps the Gradle wrapper version and updates GitHub Actions workflows to use JReleaser.

  • Consolidates per-module Maven repository configs to a local staging directory
  • Updates Gradle wrapper from 7.6.1 to 7.6.6
  • Replaces manual publish/signing steps in GitHub Actions with JReleaser deploy

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
rpc/archive.gradle Switched repository URL to local staging-deploy and removed manual signing block
ledger/archive.gradle Removed signing plugin and manual Sonatype URLs in favor of local staging directory
common/archive.gradle Same as above: local staging, drop manual signing
client/archive.gradle Same as above: local staging, drop manual signing
gradle/wrapper/gradle-wrapper.properties Bumped Gradle wrapper distribution URL to 7.6.6
.github/workflows/release.yaml Replaced manual OSSRH publish with jreleaserDeploy and new JReleaser environment variables
.github/workflows/release-snapshot.yaml Same as above for snapshot workflow
Comments suppressed due to low confidence (3)

gradle/wrapper/gradle-wrapper.properties:3

  • [nitpick] Consider updating the project CHANGELOG or release notes to document the Gradle wrapper bump to version 7.6.6.
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.6-bin.zip

.github/workflows/release.yaml:36

  • [nitpick] Running publish without a preceding clean may include stale outputs; consider using ./gradlew clean publish.
        run: ./gradlew publish

.github/workflows/release-snapshot.yaml:34

  • [nitpick] Similarly here, adding clean before publish (e.g., ./gradlew clean publish) can prevent lingering artifacts from previous runs.
        run: ./gradlew publish

Copy link

@brfrn169 brfrn169 left a comment

Choose a reason for hiding this comment

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

Left a few comments. Please take a look when you have time!

Copy link
Contributor

@feeblefakie feeblefakie left a comment

Choose a reason for hiding this comment

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

Overall, looking good. Left one question. PTAL!

Copy link
Contributor

@feeblefakie feeblefakie left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

Copy link

@brfrn169 brfrn169 left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

@jnmt
Copy link
Collaborator Author

jnmt commented Jul 15, 2025

@choplin @kota2and3kan I will merge this for testing, but PTAL when you get a chance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants