Skip to content

Instantly share code, notes, and snippets.

@xconnecting
Created January 23, 2014 01:52
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 xconnecting/8571373 to your computer and use it in GitHub Desktop.
Save xconnecting/8571373 to your computer and use it in GitHub Desktop.
[Gradle] build.gradle for Spock
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'eclipse'
repositories { mavenCentral() }
dependencies {
compile "org.codehaus.groovy:groovy-all:2.0.7"
testCompile 'org.spockframework:spock-core:0.7-groovy-2.0'
}
task mkdirs << {
sourceSets.all {
it.groovy.srcDirs.each { it.mkdirs() }
it.resources.srcDirs.each { it.mkdirs() }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment