keepitterron
keepitterron

Reputation: 1052

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?

Upvotes: 8

Views: 1653

Answers (1)

JBaruch
JBaruch

Reputation: 22923

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.

Upvotes: 8

Related Questions