Skip to content
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

Automate releases from OSSRH to Maven Central #1445

Merged
merged 6 commits into from
Aug 7, 2024

Conversation

Ndiritu
Copy link
Contributor

@Ndiritu Ndiritu commented Jul 16, 2024

  • Adds the Gradle Nexus Publish Plugin which allows closing and releasing from Nexus to Maven Central.
  • Unfortunately it doesn't support dropping staging repositories. We also cannot download packages from staging repositories. This PR adds validation checks to ensure certain files are part of the package contents to be uploaded. The JARs are first published to the local maven cache & file contents inspected.
  • For the prod release, we are only closing the staging repository using closeSonatypeStagingRepository. This will allow us to inspect the staging repository manually after these changes before we can switch to closeAndReleaseSonatypeStagingRepository with confidence that the automation works as expected.

part of #1257

@Ndiritu Ndiritu force-pushed the feat/automate-ossrh-release branch 2 times, most recently from ebab3d1 to 7ef6be5 Compare July 19, 2024 13:48
@Ndiritu Ndiritu changed the title WIP: Automate releases from OSSRH to Maven Central Automate releases from OSSRH to Maven Central Jul 19, 2024
@Ndiritu Ndiritu marked this pull request as ready for review July 19, 2024 14:02
@Ndiritu Ndiritu requested a review from a team as a code owner July 19, 2024 14:02
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

LGTM besides a question

.github/workflows/release.yml Show resolved Hide resolved

This comment was marked as outdated.

Copy link
Contributor

Conflicts have been resolved. A maintainer will take a look shortly.

@Ndiritu Ndiritu force-pushed the feat/automate-ossrh-release branch from 1bd50f8 to f667c0c Compare August 6, 2024 15:07
@Ndiritu Ndiritu requested a review from baywet August 6, 2024 15:09
Copy link

sonarqubecloud bot commented Aug 6, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants