Skip to content

Conversation

@paolorotolo
Copy link
Member

@paolorotolo paolorotolo commented Jul 14, 2024

Since we've got dev.appintro approved into OSSRH, this PR adds the logic in build.gradle to publish to mavenCentral.

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.

@paolorotolo paolorotolo added the infra Issue/PR related to the infrastructure of the library label Jul 14, 2024
@paolorotolo paolorotolo requested a review from cortinico July 14, 2024 12:29
@paolorotolo paolorotolo self-assigned this Jul 14, 2024
@paolorotolo
Copy link
Member Author

paolorotolo commented Aug 3, 2024

Sorry for the late fixes

@paolorotolo paolorotolo requested a review from cortinico August 3, 2024 14:15
repositories {
maven {
name = "OSSRH"
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
Copy link
Member

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

@cortinico
Copy link
Member

Sorry for the late review also @paolorotolo

@s1204IT
Copy link
Contributor

s1204IT commented Jun 28, 2025

I would like this feature too.
If it's difficult to generate a build script, there is also the option to upload directly to SonaType.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra Issue/PR related to the infrastructure of the library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate build scripts to release on Maven Central Repository

4 participants