-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Adapt build scripts to publish on Maven Central #1223
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Nicola Corti <[email protected]>
|
Sorry for the late fixes |
| repositories { | ||
| maven { | ||
| name = "OSSRH" | ||
| url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") |
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.
Heads up: this will work only for -SNAPSHOT releases.
Once we bump to a stable, this repository won't accept the release anymore.
I'd suggest we move to something like this:
https://github.com/gradle-nexus/publish-plugin
|
Sorry for the late review also @paolorotolo |
|
I would like this feature too. |
Since we've got
dev.appintroapproved into OSSRH, this PR adds the logic inbuild.gradleto publish tomavenCentral.Testing
Publish a new SNAPSHOT with
gradle publish.To test if it's possible to consume it, add Sonatype Snapshot repository:
maven { url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")}Add AppIntro dependency:
implementation("dev.appintro.appintro:appintro:7.0.0-SNAPSHOT")Future Developments
Right now, no automation is set. It would be nice to have a GH Action that automatically publishes SNAPSHOTS or releases. We're tracking this in #1224.
Closes #1219.