dependencies { | |
compile rootProject | |
testCompile project(':groovy-test') | |
testCompile ('org.spockframework:spock-core:0.7-groovy-2.0') { | |
exclude module: 'groovy-all' | |
} | |
} | |
task moduleDescriptor(type: org.codehaus.groovy.gradle.WriteExtensionDescriptorTask) { | |
extensionClasses = 'org.codehaus.groovy.runtime.NioGroovyMethods' | |
} | |
compileJava.dependsOn moduleDescriptor | |
tasks.withType(Compile) { | |
sourceCompatibility = 1.7 | |
targetCompatibility = 1.7 | |
} | |
tasks.withType(Javadoc) { | |
options.source = "1.7" | |
} | |