Gradle script to use scala in spock
ADD
gradle/test-with-scala.gradle
+// Enable testing scala code in groovy spock tests.
+
+apply plugin: 'scala'
+
+compileTestGroovy {
+ classpath = classpath.plus(files(compileTestScala.destinationDir))
+ dependsOn compileTestScala
+}

Gradle script to use scala in spock