buildscript {
  repositories { mavenCentral() }
  dependencies { classpath 'org.ajoberstar:gradle-git:0.2.3' }
}

import org.ajoberstar.gradle.git.tasks.*

task cloneGitRepo(type: GitClone) {
        def destination = file("./repo")
        uri = "https://github.com/ajoberstar/gradle-git.git"
        destinationPath = destination
        bare = false
        enabled = !destination.exists() //to clone only once
}

