// Enable testing scala code in groovy spock tests. apply plugin: 'scala' dependencies { testImplementation "org.scala-lang:scala-library" } tasks.named('compileTestGroovy').configure { classpath += files(sourceSets.test.scala.classesDirectory) }