(https://jitpack.io/#ome450901/TestPublishLibrary)
See more detail in my Blog
JitPack is a novel package repository for JVM and Android projects. It builds Git projects on demand and provides you with ready-to-use artifacts (jar, aar).
- Create an Android project and add a library module, here my library module name is mylibrary.
- Add the android-maven plugin in your project/build.gradle
- In your library/build.gradle add maven plugin and group setting
- Upload this project to your github
- Create a release tag
- Open JitPack and lookup your repository
- Now you can get your library from JitPack!
JitPack also works with other Git hosting providers. The only difference is the groupId of your artifacts:
- BitBucket: org.bitbucket.Username:Repo:Tag
- GitLab: com.gitlab.Username:Repo:Tag
Currently seems only github and bitbucket are works.(2017/03/06)
