Skip to content

Instantly share code, notes, and snippets.

@halyph
Forked from glaforge/build.gradle
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halyph/b8b685fb19ac7ed0c1b6 to your computer and use it in GitHub Desktop.
Save halyph/b8b685fb19ac7ed0c1b6 to your computer and use it in GitHub Desktop.
apply plugin:'groovy'
apply plugin:'idea'
repositories { 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