Example Android library that builds on jitpack.io
Clone or download
Latest commit 72a8004 Dec 17, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper Add gradle wrapper Dec 16, 2018
library Migrate to Kotlin Dec 16, 2018
.gitignore Add gradle wrapper Dec 16, 2018
README.md Update README.md Dec 17, 2018
build.gradle Upgrade android maven plugin version Dec 17, 2018
gradle.properties Add gradle wrapper Dec 16, 2018
gradlew Add gradle wrapper Dec 16, 2018
gradlew.bat Add gradle wrapper Dec 16, 2018
settings.gradle converted to a library Feb 11, 2015




Example Android library project that works with jitpack.io.

See this Tutorial on how to publish an Android Library with JitPack.

For more details check out the documentation


Add it to your build.gradle with:

allprojects {
    repositories {
        maven { url "https://jitpack.io" }


dependencies {
    compile 'com.github.jitpack:android-example:{latest version}'

Multiple build variants

If your library uses multiple flavours then see this example: https://github.com/jitpack-io/android-jitpack-library-example

Adding the maven plugin

To enable installing into local maven repository and JitPack you need to add the android-maven plugin:

  1. Add classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' to root build.gradle under buildscript { dependencies {
  2. Add com.github.dcendents.android-maven to the library/build.gradle

After these changes you should be able to run:

./gradlew install

from the root of your project. If install works and you have added a GitHub release it should work on jitpack.io

Adding a sample app

If you add a sample app to the same repo then your app needs to have a dependency on the library. To do this in your app/build.gradle add:

    dependencies {
        compile project(':library')