galvan
galvan

Reputation: 7476

Gradle - How my own library can be used in the dependencies section

I'm developing my own library for android. I want to allow other developers to use my library via the dependencies section in the gradle file. What should I do in order to enable this?

Thanks.

Upvotes: 0

Views: 81

Answers (1)

JBaruch
JBaruch

Reputation: 22923

You need to deploy your library to Bintray and link your package to JCenter (that's the default repository configured when you create a new project with Android Studio).

Here are some instructions on how to get started.

Please note that Bintray does not support SNAPSHOTs, but you can get a free account in oss.jfrog.org if you have a Bintray package linked to JCenter.

Here a project example that has all the pieces in place (look for gradle scripts in /gradle directory)

Upvotes: 1

Related Questions