Skip to content

dzheng533/jitpack.io

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

jitpack.io

This is a repository for documentation and issues of https://jitpack.io service

Gitter

About

JitPack is an easy to use package repository for JVM projects. It builds GitHub projects on demand and provides you with ready-to-use packages.

How to

To get a GitHub project into your build:

Step 1. Add the JitPack maven repository to your build file

    url "https://jitpack.io"

Step 2. Add the dependency in the form:

  • Group: com.github.Username
  • Artifact: Repository Name
  • Version: Release tag or commit id

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.

See the Guide to building for more details and instructions on building multi-module projects.

If the project doesn't have any GitHub Releases you can get the latest snapshot build. In this case use the short commit id as the version.

Releasing on JitPack

Releasing your library on JitPack is extremely simple.

Step 1: Create a GitHub Release
That's it

As long as three's a build file in your repository and it can install your library in the local Maven repository, it is sufficient for JitPack.

Some extra things to consider:

  • Add dependency information. Tell the world where to get your library:

    repositories { 
         maven { url "https://jitpack.io" }
    }
    dependencies {
          compile 'com.github.jitpack:gradle-simple:1.0'
    }

It's easy to look up the dependency information on https://jitpack.io. Just paste your GitHub url and press Look Up

  • Add sources jar. Creating the sources jar makes it easier for others to use your code and contribute.
  • Add a badge. You can add a version badge to your readme.md, for example:

Release

[![Release](https://img.shields.io/github/release/jitpack/gradle-simple.svg?label=maven)](https://jitpack.io/#jitpack/gradle-simple)

Motivation

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.

About

Repository for documentation and issues of https://jitpack.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published