[Android] Uploading a new version of a Library (e.g. PdfViewPager)

Just a quick reminder of how to deploy a new version of the lib.

First, update all the version numbers in module library/build.gradle:

ext {
    bintrayRepo = 'maven'
    bintrayName = 'pdfviewpager'

    publishedGroupId = 'es.voghdev.pdfviewpager'
    libraryName = 'PdfViewPager'
    artifact = 'library'

    libraryDescription = 'Android widget to display PDF documents in your Views, Activities or Fragments.'

    siteUrl = 'https://github.com/voghDev/PdfViewPager'
    gitUrl = 'https://github.com/voghDev/PdfViewPager.git'

    libraryVersion = '0.3.0'

    developerId = 'voghDev'

    licenseName = 'The Apache Software License, Version 2.0'
    licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
    allLicenses = ["Apache-2.0"]

After changing version numbers and commiting all the changes, execute:

./gradlew bintrayUpload

Then you can go to bintray website (I suggest you to log in using Github, that’s what I do), and see your recently uploaded package inside the list.


Important note: It will take around one week to have your version available via gradle dependency. One of my uploads took 13 days, so don’t desperate.

On the top-right corner you will find an useful link for the uploaded folder in maven central repositories. Mine is:


There you can see if the library is available yet, or not.

Hope it helps somebody on his/her deploys 🙂


3 thoughts on “[Android] Uploading a new version of a Library (e.g. PdfViewPager)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s