https://kotlinlang.org logo
#kotless
Title
# kotless
p

PJ Walstrom

02/10/2022, 6:17 PM
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

TanVD

02/11/2022, 10:23 AM
In case you want to use 11 -- you should also configure it in Kotless 🙂
8 Views