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

12 lines
244 B
Groovy

// Enable testing kotlin code in groovy spock tests.
apply plugin: 'kotlin'
kotlin {
copyClassesToJavaOutput = true
}
compileTestGroovy {
classpath = classpath.plus(files(compileTestKotlin.destinationDir))
dependsOn compileTestKotlin
}