Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to publish a closed source library to jCenter?

Is it possible to publish a private SDK to jCenter? I already set up everything and the upload to bintray works fine, however I want to publish the .aar library but not the java docs and the java source.

I've seen some libraries upload an empty javadoc.jar and sources.jar, how do I achieve this with gradle?

like image 251
keepitterron Avatar asked Jun 03 '15 13:06

keepitterron


1 Answers

Well, you can't. JCenter only accepts OSS libraries. You're more than welcome to use your own repository for it. The consumers will need to add your repository in the repositories block of their build, but otherwise it will work exactly the same.


I am with JFrog, the company behind Bintray and [artifactory], see my profile for details and links.

like image 167
JBaruch Avatar answered Sep 21 '22 18:09

JBaruch