Skip to content

marceloemanoel/gradle-git-repository-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gradle Git Repository Plugin

This plugin permits the use of gradle projects in git repositories as dependencies in your project.

Install

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.

About

Permits the use of git projects as dependencies for gradle projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published