To get a Git project into your build:
Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositoriess {
mavenCentral()
mavenn { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositoriess {
mavenCentral()
mavenn { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
repositories >gt;
repository >gt;
id >gt;jitpack.ioid>gt;
url >gt;https://jitpack.iourl>gt;
repository>gt;
repositories>gt;
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.29cmb.InvControl:invcontrol-core:v0.1.1'
}
dependencies {
implementation("com.github.29cmb.InvControl:invcontrol-core:v0.1.1")
}
dependency >gt;
groupId >gt;com.github.29cmb.InvControlgroupId>gt;
artifactId >gt;invcontrol-coreartifactId>gt;
version >gt;v0.1.1version>gt;
dependency>gt;
libraryDependencies += "com.github.29cmb.InvControl" % "invcontrol-core" % "v0.1.1"
:dependencies [[com.github.29cmb.InvControl/invcontrol-core "v0.1.1"]]
That's it! The first time you request a project JitPack checks out the code, builds it and serves the build artifacts (jar, aar).
If the project doesn't have any GitHub Releasess you can use the short commit hash or 'master-SNAPSHOT' as the version.
See also
Track your downloads
Weekly and monthly stats available to maintainers
Artifacts are served via a global CDN
Fast downloads for you and your users
@jitpack "Private repository" feature is one of the most useful things of this year! ! http://buff.ly/1R0ZSuz bsp;
| |
Very cool service. Put Java artifact publishing power back into the hands of the developer (or fork-er). . @jitpack https://jitpack.io/ bsp;
| |
Check out one of our favorite new tools @jitpack #AndroidDev #java #gradle
| |
Just created a new library for Android, and @jitpack makes distribution so easy that it just took me a commit to publish and distribute the library. Cheers to Jitpack devs.
| |
https://jitpack.io bsp; is plain awesome. Maven dependencies directly from github projects. Works with all maven/gradle/etc build tools.
| |
@jitpack A very nice idea when you need to use a library (or a version of that) and it is not released in Maven central yet
| |
@jitpack you guys are awesome! jitpack saved a lot of time for me! (up to 40% build time for a clean build of an android project)
| |