Skip to content

Instantly share code, notes, and snippets.

@ffbit
Forked from Dierk/build.gradle
Last active December 31, 2015 21:19
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 ffbit/8045855 to your computer and use it in GitHub Desktop.
Save ffbit/8045855 to your computer and use it in GitHub Desktop.
apply plugin:'java'
apply plugin:'idea'
repositories { mavenCentral() }
dependencies {
testCompile 'junit:junit:4.11'
}
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.10'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment