How to publish your Gradle project to the Central Repository


November 14, 2011 By Terry Bernstein

Sonatype makes it easy to add your projects to the Central Repository with a free, public hosting service called OSSRH, that we recently wrote about here.  Many developers have found this a very useful service and easy to use with Apache Maven.  However, if you’ve started using Gradle, you may have wondered if you could continue using the service.  The answer is absolutely YES.

We were talking about creating a guide for this, but someone in the community beat us to it.  Yennick Trevels published an excellent guide in his blog that you can find here.  We highly recommend checking out his post if you want to use Gradle to deploy artifacts to the Central Repository.