JitPack builds GitHub projects on demand and provides ready-to-use packages
To get a GitHub project into your build:
Step 1. Add the JitPack repository to your build file
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
repositories {
maven {
url "https://jitpack.io"
}
}
Step 2. Add the dependency in the form
<dependency>
<groupId>com.github.User</groupId>
<artifactId>Repo name</artifactId>
<version>Release tag</version>
</dependency>
dependencies {
compile 'com.github.User:Repo:Tag'
}
That's it! The first time you request a project JitPack checks out the code, builds it and sends the Jar files back to you.
If the project doesn't have any GitHub Releases you can get the latest snapshot build. In this case use the version they have in their pom.
See the Guide to building for more details.
There are a lot of great libraries on GitHub but unfortunately many of them are not published on any public repositories. You could always check out the code, build and deploy locally:
but wouldn't it be great if the library was already built and available to use? Well now it is.
With JitPack all the author needs to do is create a GitHub Release and the project becomes available for everyone to use. So sharing releases is simpler for authors as well.
JitPack is currently beta stage and builds Gradle and Maven projects. Support for other build frameworks is on the road map as well. If there is an issue with a build you will see a link to the log in the Status column.
All feedback is welcome and if you experience an issue, have a question or would like to see a new feature please open a GitHub Issue