20 lines
452 B
Plaintext
20 lines
452 B
Plaintext
// Enable testing scala code in groovy spock tests.
|
|
|
|
plugins {
|
|
scala
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation("org.scala-lang:scala-library")
|
|
}
|
|
|
|
tasks {
|
|
// Gradle sets scala compiler version to toolchain version, not target version
|
|
// https://github.com/gradle/gradle/issues/18211
|
|
withType<ScalaCompile>().configureEach {
|
|
scalaCompileOptions.apply {
|
|
additionalParameters = additionalParameters.orEmpty() + "-target:jvm-1.8"
|
|
}
|
|
}
|
|
}
|