8

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?

keepitterron
  • 1,052
  • 1
  • 8
  • 12

1 Answers1

8

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.

Community
  • 1
  • 1
JBaruch
  • 22,610
  • 5
  • 62
  • 90
  • Hey JBaruch, I actually would like to publish a library that is OSS - but would like to do so manually for now. I registered, but see no option of where I would add a jar/library/etc. – rkd80 Jul 29 '15 at 22:16
  • 2
    [Upload files to Bintray](https://bintray.com/docs/usermanual/uploads/uploads_howdoiuploadmystufftobintray.html). And I think that deserves a question of its own, since has nothing to do with the question we are commenting on. – JBaruch Jul 29 '15 at 22:41
  • [This answer](https://stackoverflow.com/a/41961175) suggests that premium organizations can still link their private repo to JCenter even if they're not OSS. Is that correct? – Pierre Jan 06 '21 at 18:04