Skip to content

Conversation

@ediweissmann
Copy link
Contributor

This prepares the build.gradle file for publishing the library to Maven Central.
It's in the lines of this article here: http://yennicktrevels.com/blog/2013/10/11/automated-gradle-project-deployment-to-sonatype-oss-repository/

Next steps:

$ gradle uploadArchives

and release the artifacts: https://oss.sonatype.org/index.html#stagingRepositories

@brandonmwest
Copy link
Contributor

Thank you!!

@motdotla
Copy link
Contributor

❤️

@motdotla
Copy link
Contributor

Working through this now

@motdotla
Copy link
Contributor

Ticket is up here:

https://issues.sonatype.org/browse/OSSRH-8185

I'll be watching it. Upon approval of that group id, I'll move the next step. Thanks again @ediweissmann !

@motdotla motdotla mentioned this pull request Dec 19, 2013
@ediweissmann
Copy link
Contributor Author

My pleasure :)

motdotla added a commit that referenced this pull request Dec 19, 2013
This fixes #6: adds ability to publish library to Maven Central.
@motdotla motdotla merged commit 308d01a into sendgrid:master Dec 19, 2013
@motdotla
Copy link
Contributor

Notes for my future reference:

Here's details on the final release process:

https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-7d.StageReleaseswithGradle

  1. Go to staging repositories

  2. Select the recently upload jar, and click 'Close' (yes, close. I know, seems crazy)

  3. It will take a few minutes to close as Sonatype runs some background tasks to make sure it is valid.

  4. Refresh the page, checkbox the library again in the staging repositories and now you can click 'Release'.

  5. "When the artifacts are in the release repository, add a comment to the original ticket asking for them to be published to Maven Central. For the first time they need to do it manually but since that on it will be synchronized automatically every hour"

@motdotla
Copy link
Contributor

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants