opentelemetry-java-instrume.../gradle/test-with-scala.gradle

12 lines
254 B
Groovy

// 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)
}