Movatterモバイル変換


[0]ホーム

URL:


JitPack

Private Package Repository

Publish private Maven, Gradle and Android libraries

Repositories
VersionTestsLogStatus
Downloads
Week12
Month3

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 settings.gradle at the end of repositories:

dependencyResolutionManagement {repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)repositories {mavenCentral()maven { url 'https://jitpack.io' }}}

Add it in your settings.gradle.kts at the end of repositories:

dependencyResolutionManagement {repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)repositories {mavenCentral()maven { url = uri("https://jitpack.io") }}}

Add to pom.xml

<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'}
    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 settings.gradle:

     dependencyResolutionManagement {    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)    repositories {        ...        maven {            url "https://jitpack.io"            credentials { username authToken }        }    } }

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

    authToken=AUTHENTICATION_TOKEN

    Then use authToken as the username in your settings.gradle.kts:

     dependencyResolutionManagement {    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)    repositories {        ...        maven {            url = uri("https://jitpack.io")            credentials.username = providers.gradleProperty("authToken").get()        }    } }

    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=JitPackhost=jitpack.iouser=AUTHENTICATION_TOKENpassword=.

    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 toapprove 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 thedocumentation on how to authenticate with other providers (Bitbucket, GitLab, custom) or to use SSH key authentication.

    Plans & Pricing

    JitPack Subscription

    JitPack is alwaysfree for open-source

    JitPack Subscription enables you to build and install fromprivate Git repositories

    Individual

    $ 12/month
    ex. VAT

    3 Private Repos
    Unlimited versions
    Unlimited collaborators
    Artifact sharing
    Continuous Integration *




    Small

    $ 29/month
    ex. VAT

    10 Private Repos
    Unlimited versions
    Unlimited collaborators
    Continuous Integration *
    Artifact sharing
    Custom domain



    Medium

    $ 45/month
    ex. VAT


    25 Private Repos
    Unlimited versions
    Unlimited collaborators
    Continuous Integration *
    Artifact sharing
    Custom domain
    Download stats


    Large

    $ 85/month
    ex. VAT

    200 Private Repos
    Unlimited versions
    Unlimited collaborators
    Continuous Integration *
    Artifact sharing
    Custom domain
    Download stats
    CDN

    Billing cycle:

    Which repositories would you like to build?

    Your subscription is now active!

    Subscriptions

    * available as an add-on

    Enterprise plans available upon request

    Refer a friend

    Invite a friend and get a month for free when they subscribe

    Thanks! We'll send you a download link

    Customers

    Instacart
    The AA
    Panasonic
    Flyt
    9GAG

    What developers say

    Follow @jitpack

    Works with
    Powered by
    © 2015-2025 JitPack |JitCI | Twitter | GitHub |Pricing |Terms |Privacy |Status

    [8]ページ先頭

    ©2009-2025 Movatter.jp