Search code examples
androidgradlebintrayjcenter

Not able to link github private repository to jcenter in bintray


I published my project in the Bintray successfully, but when I tried to link it to the jCenter, I got this error message:

Failed to send a message: The version control "https://github-private-repository-url" returns 404.

My GitHub repository is private, so I want to know is it possible to link a private repo to the jCenter, and if yes how can I do that?


Solution

  • From JFrog Bintray Documentation :

    Note that private repositories in GitHub are only displayed and available for importing by Bintray users with Premium Plan accounts who also have "Access private repositories" permissions in GitHub.

    Generally, to publish a private repository, you will need a repository manager like JFrog Artifactory or Nexus Repository. You can either maintain your own repository server or avail cloud solutions offered by such repository managers to host your artifacts.

    One can also read off directly from GitHub private repository. JitPack Private Package Repository can be used to directly expose GitHub private repositories to publish private Maven, Gradle and Android libraries. You can also expose source code in your private Github repositories without versioning provided by Jitpack as explained in this Medium article. Also, these approaches need you to share your GitHub repo tokens.