Eric B.
Eric B.

Reputation: 4702

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.

Upvotes: 10

Views: 1941

Answers (2)

Anderson K
Anderson K

Reputation: 5505

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

Upvotes: 1

MiguelCatalan
MiguelCatalan

Reputation: 916

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.

Upvotes: 8

Related Questions