14 lines
459 B
Groovy
14 lines
459 B
Groovy
// Enable testing kotlin code in groovy spock tests.
|
|
apply plugin: 'kotlin'
|
|
|
|
kotlin {
|
|
//This option prevents compilation issues when switching branches while refactoring java code to kotlin.
|
|
//After we are done refactoring java -> kotlin when can disable this and use gradle build cache features.
|
|
copyClassesToJavaOutput = true
|
|
}
|
|
|
|
compileTestGroovy {
|
|
classpath = classpath.plus(files(compileTestKotlin.destinationDir))
|
|
dependsOn compileTestKotlin
|
|
}
|