Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

A demo project to illustrate Bintray release configuration of a project which contains several modules.

License

Notifications You must be signed in to change notification settings

quangctkm9207/multi-library-bintray

Repository files navigation

DEPRECATED

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.

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

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.

About

A demo project to illustrate Bintray release configuration of a project which contains several modules.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages