JitPack

Easy to use package repository for Git

Publish your JVM and Android libraries

 

How to

To get a Git project into your build:

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

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 {
		compile 'com.github.User:Repo:Tag'
	}
	<dependency>
	    <groupId>com.github.User</groupId>
	    <artifactId>Repo</artifactId>
	    <version>Tag</version>
	</dependency>

                            
    libraryDependencies += "com.github.User" % "Repo" % "Tag"
        
        

                            
    :dependencies [[com.github.User/Repo "Tag"]]
        
        

Private Repositories

To use JitPack with private repositories:

Step 1. Authorize JitPack and get your personal access token:

Step 2. Add the token to $HOME/.gradle/gradle.properties

								
								
	authToken=AUTHENTICATION_TOKEN
							

Then use authToken as the username in your build.gradle:

								
								
 repositories {
        maven {
            url "https://jitpack.io"
            credentials { username authToken }
        }
 }
							

Step 3. Add the token to $HOME/.m2/settings.xml as the username

								
								
<settings>
  <servers>
        <server>
          <id>jitpack.io</id>
          <username>AUTHENTICATION_TOKEN</username>
          <password>.</password>
        </server>
  </servers>
</settings>
							

The id of the server must be the same you use in your pom.xml

Step 3. Add the token to $HOME/.sbt/.credentials file

								
								
realm=JitPack
host=jitpack.io
user=AUTHENTICATION_TOKEN
password=.
							

Then add credentials to your Sbt build file

								
 
credentials += Credentials(Path.userHome / ".sbt" / ".credentials")
 
							

Step 3. Add the token to project.clj

								
								
 :repositories [["jitpack" { :url "https://jitpack.io" 
 							 :username "AUTHENTICATION_TOKEN"
 							 :password "." }]]

							

Build artifacts (jar, aar) are also private and you can only download them if you have access to the Git repo itself. See the documentation for more details

If you'd like to host JitPack inside your organization please see JitPack Enterprise

Plans & Pricing

JitPack Subscription

JitPack is free for public Git repositories

JitPack Subscription enables you to build and install from private Git repositories

Large

$ 85/month

50 Private Repos
Unlimited versions
Unlimited collaborators
Javadoc hosting
Artifact sharing
Custom domain
Download stats
CDN

Medium

$ 45/month


25 Private Repos
Unlimited versions
Unlimited collaborators
Javadoc hosting
Artifact sharing
Custom domain
Download stats


Small

$ 29/month

10 Private Repos
Unlimited versions
Unlimited collaborators
Javadoc hosting
Artifact sharing
Custom domain



Starter

$ 9/month

3 Private Repos
Unlimited versions
Unlimited collaborators
Javadoc hosting





Billing cycle:

Select an account for this subscription:

For more information see the documentation or get in touch with us

If you'd like to use JitPack inside your organization please see JitPack Enterprise

Refer a friend

Invite a friend and get a month for free. Invite two and get two months free!

Customers

What developers say

Works with
Powered by