Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create an android library and upload it on github?

I have created a new module in Android Studio, and wrote my code in it. Now i want to upload it on github and get a gradle dependency which others can include in their project and use my library. How can i get it?

PS. I know how to use git, i just don't know how to upload just the library module and get the gradle dependency.

like image 429
Eric B. Avatar asked Nov 13 '15 12:11

Eric B.


2 Answers

The esiest way is to create a git repository in Github and upload it there.

After that, you can use jitpack.io to use it with gradle.

The long old way, it is to create a Bintray project, and deploy it at MavenCentral and/or JCentre.

like image 151
MiguelCatalan Avatar answered Oct 16 '22 17:10

MiguelCatalan


What do you need to do is upload your project to Bintray or sonatype

See here a good tutorial:

how-to-upload-library-to-jcenter-maven-central-as-dependency

like image 39
Anderson K Avatar answered Oct 16 '22 19:10

Anderson K