I can\'t figure out to get this working.
Scenario:
What I w
If you are using JDK 9+, you can do this:
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType {
options.compilerArgs.addAll(arrayOf("--release", "8"))
}
You can also see the following related issues: