https://github.com/williamyyu/publishlibrarybyjitpack
A example project about publish library by JitPack.
https://github.com/williamyyu/publishlibrarybyjitpack
android jitpack library publish
Last synced: over 1 year ago
JSON representation
A example project about publish library by JitPack.
- Host: GitHub
- URL: https://github.com/williamyyu/publishlibrarybyjitpack
- Owner: williamyyu
- Created: 2017-03-06T04:11:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-23T05:35:57.000Z (over 9 years ago)
- Last Synced: 2025-03-21T06:03:31.094Z (over 1 year ago)
- Topics: android, jitpack, library, publish
- Language: Java
- Homepage: https://medium.com/@ome450901/publish-an-android-library-by-jitpack-a0342684cbd0#.gcakfn5mw
- Size: 89.8 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Publish an Android Library by JitPack

(https://jitpack.io/#ome450901/TestPublishLibrary)
## See more detail in my [Blog](https://medium.com/@ome450901/publish-an-android-library-by-jitpack-a0342684cbd0#.gcakfn5mw)

>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).
## Steps
1. Create an Android project and add a library module, here my library module name is mylibrary.
2. Add the android-maven plugin in your project/build.gradle
3. In your library/build.gradle add maven plugin and group setting
4. Upload this project to your github
5. Create a release tag
6. Open JitPack and lookup your repository
7. Now you can get your library from JitPack!
## Other Git Hosts
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
## Private Repos
Currently seems only github and bitbucket are works.(2017/03/06)
## References
- http://www.jianshu.com/p/434911cd8732
- https://jitpack.io/docs/