Android studio - Gradle - GitHub Repo

13 views
Skip to first unread message

Mathieu Blanchette

unread,
Sep 21, 2014, 10:54:41 AM9/21/14
to gradle-androi...@googlegroups.com

Does anyone have an idea if it's possible to use a github repo as a dependency, without it being published to maven central.

Let's say I'm developing an android library that has it's own github repo. I'd like to be able to "compile" this library has gradle dependency, in my android studio project, without having to publish to maven central (at least for the moment).

In other words : I want to use a dependency that is not on maven central. It's a straight github repo (an android library that also uses gradle).

I'd like my build.gradle to do something like this :

dependencies {
  // Google Play Services (normal dependency)
  compile "com.google.android.gms:play-services:5.2.08"

  // The library I want to pull from github
  compile "path_to_my_github_repo"
}

Thanks!

Reply all
Reply to author
Forward
0 new messages