A demo project to illustrate Bintray release configuration of a project which contains several modules.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doraemon
gradle/wrapper
jcenter
manga
sample
.gitignore
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
release-bintray.gradle
settings.gradle

README.md

Multiple Library Bintray Release

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.

Steps

  1. Copy jcenter folder and release-bintray.gradle file into your project
  2. 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.

  1. Set your Bintray credentials
    You need to put your own Bintray account credentials inside local.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
  1. In each module, update its Bintray information in gradle.properties For example, for module manga 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
  1. Run script from command line
  • To publish all modules at the same time
./gradlew bintrayUpload
  • To publish a specific module separately
./gradlew *moduleName*:bintrayUpload