Skip to content

Instantly share code, notes, and snippets.

@jehrhardt
Created July 26, 2012 07:24
Show Gist options
  • Save jehrhardt/3180739 to your computer and use it in GitHub Desktop.
Save jehrhardt/3180739 to your computer and use it in GitHub Desktop.
Groovy 2.0 with invokedynamic in Gradle
apply plugin: "groovy"
sourceCompatibility = 1.7
targetCompatibility = 1.7
compileGroovy {
groovyOptions.metaClass.optionMap = { [indy: true, encoding: "UTF-8"] }
}
compileTestGroovy {
groovyOptions.metaClass.optionMap = { [indy: true, encoding: "UTF-8"] }
}
repositories {
mavenCentral()
}
configurations {
all*.exclude module: "groovy-all"
}
dependencies {
groovy "org.codehaus.groovy:groovy:2.0.+:indy"
testCompile "org.spockframework:spock-core:0.7-groovy-2.0-SNAPSHOT"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment