Skip to content

Instantly share code, notes, and snippets.

@kellyrob99
Forked from glaforge/build.gradle
Created November 27, 2011 23:20
Show Gist options
  • Save kellyrob99/1398420 to your computer and use it in GitHub Desktop.
Save kellyrob99/1398420 to your computer and use it in GitHub Desktop.
build.gradle for setting up a new gradle-based project
apply plugin:'groovy'
apply plugin:'idea'
apply plugin:'project-report'
apply plugin:'maven'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
groovy 'org.codehaus.groovy:groovy-all:1.8.4'
}
task makeDirs(description:'make all dirs for project setup') << {
def sources = [sourceSets.main, sourceSets.test]
sources*.allSource*.srcDirs.flatten().each { File srcDir ->
println "making $srcDir"
srcDir.mkdirs()
}
}
task wrap(type:Wrapper, description:"create a gradlew") {
gradleVersion = '1.0-milestone-6'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment