Dillon Burton
Dillon Burton

Reputation: 131

Open sourcing an android studio library project and allowing others to include as gradle dependency

I would like to open source a library project that I am working on in android studio (hosted on GitHub) and allow others to include the project as a dependency.

Example:

dependencies {
    compile 'com.test:myproject:1.0'
}

I've done some research, and have only discovered how to create a module and import it locally within my project. Does anyone know the necessary steps to take to achieve what I want?

Upvotes: 0

Views: 81

Answers (2)

Amirul Zin
Amirul Zin

Reputation: 68

Also, look into jitpack.io. It is easily the quickest way for getting a JVM projects up and ready especially if you're already using Github. Here's the extra docs for it as well.

Upvotes: 0

Hugo Gresse
Hugo Gresse

Reputation: 17899

Basicly you can publish your app on a public repository like maven or jCenter. The easiest way is to published on bintray, it's free for open source public library. You can use the following library to help you

Upvotes: 1

Related Questions