-
Notifications
You must be signed in to change notification settings - Fork 246
HSEARCH-5351 Switch to JReleaser for nexus publishing #4564
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
Open
marko-bekhta
wants to merge
1
commit into
hibernate:main
Choose a base branch
from
marko-bekhta:build/HSEARCH-5351-Switch-to-JReleaser-for-nexus-publishing
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# The folder into which we checkout our release scripts into | ||
* | ||
!.gitignore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
project: | ||
languages: | ||
java: | ||
groupId: org.hibernate.search | ||
|
||
release: | ||
github: | ||
skipTag: true | ||
skipRelease: true | ||
tagName: '{{projectVersion}}' | ||
|
||
# File signing is always active | ||
signing: | ||
mode: COMMAND | ||
active: RELEASE | ||
armored: true | ||
|
||
# Deploy JARs and POMs to Maven Central | ||
deploy: | ||
maven: | ||
nexus2: | ||
maven-central: | ||
active: RELEASE | ||
url: https://oss.sonatype.org/service/local | ||
snapshotUrl: https://oss.sonatype.org/content/repositories/snapshots/ | ||
closeRepository: true | ||
releaseRepository: false | ||
stagingRepositories: | ||
- target/staging-deploy/maven | ||
maven-central-snapshot: | ||
active: SNAPSHOT | ||
url: https://oss.sonatype.org/service/local | ||
snapshotUrl: https://oss.sonatype.org/content/repositories/snapshots/ | ||
closeRepository: true | ||
releaseRepository: true | ||
javadocJar: false | ||
sign: false | ||
stagingRepositories: | ||
- target/staging-deploy/maven | ||
mavenCentral: | ||
maven-central: | ||
# TODO: HSEARCH-5354 Change to RELEASE once switching to Maven-Central: | ||
active: NEVER | ||
url: https://central.sonatype.com/api/v1/publisher | ||
snapshotSupported: false | ||
applyMavenCentralRules: true | ||
stagingRepositories: | ||
- target/staging-deploy/maven | ||
maven-central-snapshot: | ||
# TODO: HSEARCH-5354 Change to SNAPSHOT once switching to Maven-Central: | ||
active: NEVER | ||
url: https://central.sonatype.com/api/v1/publisher | ||
snapshotSupported: true | ||
applyMavenCentralRules: true | ||
javadocJar: false | ||
sign: false | ||
stagingRepositories: | ||
- target/staging-deploy/maven |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we want to keep logging into the Nexus repository web UI to click the "release" button?
Fine by me, but I wonder: is there an equivalent for the Maven Central publishing API? If not, we'll probably want to make sure we don't rely on this manual step...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the idea here was not to release the repository while testing the migration, as for the future ... we can flip the flag for maintenance branches, as for the main one... idk... if we aren't adding new artifacts then it's probably fine to release the repo automatically, but if we are .. it'll probably be safer to go check the staged bundle before releasing, no?
as for the new APIs, I think they have some alternative to this:
https://jreleaser.org/guide/latest/reference/deploy/maven/maven-central.html#_staged_deployments
but ... you know, I haven't tested this yet 😄
and while I was writing the comment, I thought I can (probably) try it on a local nexus, unless it's a Pro feature ...