Using kotless 0.2.0, kotlin 1.5.32, gradle 7.4 I g...
# kotless
p
Using kotless 0.2.0, kotlin 1.5.32, gradle 7.4 I get the following error. Any suggestions?
Copy code
$ ./gradlew deploy
> Task :generate FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':generate' (type 'KotlessGenerateTask').
  - In plugin 'io.kotless' type 'io.kotless.plugin.gradle.tasks.gen.KotlessGenerateTask' property 'myTargetVersion' doesn't have a configured value.
had to change
jvmTarget
in
tasks
in
build.gradle.kts
from 11 to 1_8. Then it works
Copy code
compileKotlin {
 kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
}
t
In case you want to use 11 -- you should also configure it in Kotless 🙂