This plugin permits the use of gradle projects in git repositories as dependencies in your project.
Just put the following code snippet in your build.gradle file.
buildScript {
repositories {
mavenCentral()
}
dependencies {
classpath "com.github.marceloemanoel:gradle-git-repository-plugin:0.1"
}
}
apply plugin: "git-repositories"
From that on your project can add git repositories and depend on projects in it.
repositories {
git()
gitHub()
}
dependencies {
compile "username/project:branch[:tag]" //that's for a github project
compile "git url:branch[:tag]" //that's for a generic git repository
}
The artifacts of the project will be generated by gradle using the assemble
task. For the moment
only gradle projects will be supported.