Created
July 26, 2012 07:24
-
-
Save jehrhardt/3180739 to your computer and use it in GitHub Desktop.
Groovy 2.0 with invokedynamic in Gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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