Closed wilkinsona closed 5 years ago
The compileKotlin
customization can be written like this using the current functionality:
compileKotlin {
kotlinOptions.freeCompilerArgs = ["-Xjsr305=strict"]
kotlinOptions.jvmTarget = "1.8"
}
We definitely need to support assignment.
Fixed in 094b58cd3d5b4a2da47b1f3ef53043603347f141.
A project that uses Kotlin needs to be able to do task customisation like this:
The current implementation was driven by requirements from Spring REST Docs and only supports customisation like this:
We need to support the nesting (
kotlinOptions
in this specific case). We also need to look at the difference betweenjvmTarget = "1.8"
andjvmTarget "1.8"
. We may need to support both.