-
Notifications
You must be signed in to change notification settings - Fork 4
chore: jreleaser for publishing to maven central portal #120
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
Conversation
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.
Nice job figuring this out!
run: ./gradlew clean publish -Prelease | ||
|
||
- name: Deploy to Maven Central | ||
run: ./gradlew jreleaserDeploy |
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.
👍
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 17 | ||
- name: Set up JDK 8 |
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.
🧟 😭
@@ -1,7 +1,7 @@ | |||
plugins { | |||
id 'java-library' | |||
id 'maven-publish' | |||
id 'signing' | |||
id 'org.jreleaser' version '1.18.0' |
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.
🔥
// Custom task to ensure we can conditionally publish either a release or snapshot artifact | ||
// based on a command line switch. See github workflow files for more details on usage. |
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.
👍
Motivation
OSSRH is due to be sunset 30th June.
There is not yet official support in the
gradle-maven-publish
plugin, but jReleaser handles the new endpoints.Changes