[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.

pdfvp-3.0.png

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:

https://dl.bintray.com/voghdev/maven/es/voghdev/pdfviewpager/library/

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

Hope it helps somebody on his/her deploys 🙂

Advertisement