JitPack

Private Package Repository

Publish private Maven, Gradle 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 {
		implementation '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:

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

Step 2. 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 2. 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 2. Add the token to project.clj

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

							

Step 3. (Optional) You may need to approve JitPack Application on GitHub

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

Plans & Pricing

JitPack Subscription

JitPack is always free for public Git repositories

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

Large

$ 85/month

100 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



Individual

$ 9/month

3 Private Repos *
Unlimited versions
Unlimited collaborators
Artifact sharing
Javadoc hosting




Billing cycle:

Which repositories is this subscription for?

* only repositories that are built on JitPack are billed

Larger plans available upon request

Refer a friend

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

Customers

Instacart
The AA
Panasonic
Flyt
9GAG

What developers say

Works with
Powered by