Bintray just stopped accepting new packages from early 2021. Therefore, to host your Java/Library, you can use Maven Central (Sonatype) by following this post.
A demo project which illustrates how to a distribute Java/Android multiple-module library on Bintray easily.
The steps are explained fully at my blog post.
- Copy
jcenter
folder andrelease-bintray.gradle
file into your project - Add the following line into each module's
build.gradle
file
// ...
apply from: rootProject.file('release-bintray.gradle')
For example, please check the module manga
's gradle file in this project.
- Set your Bintray credentials
You need to put your own Bintray account credentials insidelocal.properties
file (which is not tracked by version control).
bintray.user=your_username
bintray.apikey=your_api_key (i.e: adfasdf342342j34lba84a25f8c3)
bintray.gpg.password=your_gpg_password
- In each module, update its Bintray information in
gradle.properties
For example, for modulemanga
in this project.
POM_NAME=Manga
POM_DESCRIPTION=Define general mange character
POM_BINTRAY_NAME=com.quangnguyen.manga:manga
POM_ARTIFACT_ID=manga
POM_PACKAGING=jar
POM_VERSION=1.1.0
- Run script from command line
- To publish all modules at the same time
./gradlew bintrayUpload
- To publish a specific module separately
./gradlew *moduleName*:bintrayUpload
If you are interested in my useful blog posts and cool projects, you can subscribe to my newsletter by clicking the below link.
SUBSCRIBE TO USEFUL BLOG POSTS AND COOL PROJECTS.