Error: Could not find or load main class org.jetbrains.kotlin.cli.jvm.K2JVMCompiler
Caused by: java.lang.ClassNotFoundException: org.jetbrains.kotlin.cli.jvm.K2JVMCompiler
1.5.21 gradle plugin, tried different SDKs, upgrading plugin to 1.5.30-M1, downgrading to 1.5.20, 1.5.10. Cleaning project, removing whole $HOME/.gradle directory.
This error relates to submodule of multi-project project. Modules use either jvm or mpp plugin.
Thread in Slack Conversation
t
tapchicoma
07/27/2021, 5:21 PM
which Gradle version have you tried?
tapchicoma
07/27/2021, 5:21 PM
is it possible to share project?
t
Tomasz Krakowiak
07/27/2021, 6:59 PM
@tapchicoma Gradle versions: 7.1.1, 7.1, 7.0, 6.9
I migrated project from gradle 6.6, kotlin 1.4.* and from spring dependency management plugin to gradle dependency constraints (had and still have some other issues with dependencies, when I try to sync project in IntelliJ, but first I want to try to make it work from command line)
Tomasz Krakowiak
07/27/2021, 7:02 PM
I am also using spring-boot plugin, just updated to latest version.
t
tapchicoma
07/27/2021, 7:10 PM
is it possible to share Gradle build scan?
t
Tomasz Krakowiak
07/27/2021, 9:33 PM
Build scan PMed. Tomorrow I may try to reproduce the issue on small project.