// Enable testing scala code in groovy spock tests. apply plugin: 'scala' configurations { all { if (it.name != "zinc") { resolutionStrategy { force deps.scala } } } } compileTestGroovy { classpath = classpath.plus(files(compileTestScala.destinationDir)) dependsOn compileTestScala }