Skip to content

Conversation

ihrasko
Copy link
Collaborator

@ihrasko ihrasko commented Jun 17, 2025

@ihrasko ihrasko requested a review from Tobianas June 17, 2025 12:02
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 @ihrasko, 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 updates the project's Maven build configuration to transition from the legacy OSSRH platform to the new Central Portal for publishing artifacts. This migration streamlines the release process by incorporating the dedicated Central Publishing Maven Plugin and removing outdated distribution management configurations.

Highlights

  • Maven Central Portal Integration: The central-publishing-maven-plugin (version 0.7.0) has been added to the release profile in lighty-core/dependency-versions/pom.xml, lighty-core/lighty-bom/pom.xml, lighty-core/lighty-minimal-parent/pom.xml, and lighty-resources/log4j2-config/pom.xml. This plugin is crucial for facilitating artifact publication to the new Central Portal.
  • Distribution Management Simplification: The explicit <distributionManagement> sections, which previously defined artifact deployment locations, have been removed from all pom.xml files. This is because the new Central Publishing Plugin now manages artifact deployment, rendering these explicit configurations obsolete.
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

The changes in this pull request migrate the Maven deployment configuration from the legacy OSSRH to the new Sonatype Central Portal. This involves removing the old distributionManagement sections and adding the central-publishing-maven-plugin to the relevant POM files. The modifications are consistent and follow the recommended guidelines for this migration. No issues requiring changes were found in the diffs.

@Tobianas
Copy link
Contributor

#2234

@ihrasko ihrasko marked this pull request as draft June 20, 2025 14:07
@ihrasko ihrasko force-pushed the central-depoloy branch from 7ef7b4a to b57e7ea Compare July 4, 2025 13:32
@ihrasko
Copy link
Collaborator Author

ihrasko commented Jul 4, 2025

Let's revalidate if not-validated artifacts we being deployed to maven central previously.

ihrasko added 3 commits July 10, 2025 17:07
OSSRH is going down. We are going to use Maven plugin to deploy
to Central Portal:
https://central.sonatype.org/publish/publish-portal-maven/

JIRA: LIGHTY-370
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
Use central-publishing-maven-plugin to mvn deploy artifacts during
release profile invocation (mvn release:perform).

See:
https://central.sonatype.org/publish/publish-portal-maven/

JIRA: LIGHTY-370
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
Fix relative paths to POM parents as a root cause of Central Portal
validation errors for some artifacts (exactly 26).

Those artifacts should inherit SCM name and url from its parent
when properly configured.

JIRA: LIGHTY-374
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
@ihrasko ihrasko requested a review from Tobianas July 11, 2025 07:35
ihrasko added 2 commits July 11, 2025 13:35
Add missing SCM name and url to some artifacts.

JIRA: LIGHTY-374
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
Exclude skipped 25 artifacts by maven.deploy.skip from publishing
to maven central.

JIRA: LIGHTY-374
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
@ihrasko ihrasko marked this pull request as ready for review July 11, 2025 12:16
@ihrasko ihrasko merged commit 9729405 into PANTHEONtech:main Jul 11, 2025
5 of 6 checks passed
@ihrasko ihrasko deleted the central-depoloy branch July 11, 2025 12:18
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