shimi_tap
shimi_tap

Reputation: 7962

Android Gradle compile from mercurial

I want to fetch a project from a mercurial repository in a specific branch with a specific commit id and use it in my Gradle based project.

same as from maven, for instance like this :

dependencies {
    compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
}

Thanks in advance Shimi

Upvotes: 0

Views: 67

Answers (1)

Peter Niederwieser
Peter Niederwieser

Reputation: 123950

There isn't currently a built-in feature for that. You could check out the project using a third-party Gradle SCM plugin, build it using a GradleBuild task, and then point to the binary using compile files("path/to/artifact.aar"). Or you set up a CI job that builds the project and publishes the binary to a Maven repository, so that you can pull it with the above syntax.

Upvotes: 2

Related Questions