Skip to content

Instantly share code, notes, and snippets.

@grimrose
Created August 3, 2012 16:37
Show Gist options
  • Save grimrose/3249332 to your computer and use it in GitHub Desktop.
Save grimrose/3249332 to your computer and use it in GitHub Desktop.
quickstart gradle
/* language */
apply {
plugin 'groovy'
plugin 'java'
}
/* ide */
apply {
plugin 'idea'
plugin 'eclipse'
}
version = '1.0'
sourceCompatibility = 1.7
targetCompatibility = 1.7
def encoding = 'UTF-8'
[compileJava, compileTestJava, compileGroovy, compileTestGroovy].each { it.options.encoding = encoding }
[compileGroovy, compileTestGroovy].each { it.groovyOptions.encoding = encoding }
repositories {
mavenCentral()
}
dependencies {
groovy 'org.codehaus.groovy:groovy-all:1.8.6'
testCompile 'org.spockframework:spock-core:0.6-groovy-1.8'
}
task quickStart << {
sourceSets*.allSource*.srcDirs.flatten().each { it.mkdirs() }
}
task wrapper(type: Wrapper) {
gradleVersion = 1.1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment