Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoClassDefFoundError: org/jetbrains/kotlin/gradle/dsl/KotlinCompile while synchronizing Kotlin project #1006

Open
musketyr opened this issue Jun 18, 2024 · 2 comments

Comments

@musketyr
Copy link

Expected Behavior

Koltin project synchronizes properly in IntelliJ

Actual Behaviour

The project fails synchronization with

java.lang.NoClassDefFoundError: org/jetbrains/kotlin/gradle/dsl/KotlinCompile	
at io.micronaut.gradle.MicronautKotlinSupport.configureKotlin(MicronautKotlinSupport.java:78)	
at io.micronaut.gradle.MicronautKotlinSupport.lambda$whenKotlinSupportPresent$0(MicronautKotlinSupport.java:49)

see e.g. https://scans.gradle.com/s/22eoxo6xfyjrs/failure

Steps To Reproduce

  1. clone Micronaut AWS SDK repository branch that re-enabled Kotlin subproject
  2. synchronize the project in IntelliJ or simply run some Gradle task such as classes
  3. You got the error similar to this one

Environment Information

Operating system macOS 14.2.1 (aarch64)
Java runtime Azul Zulu OpenJDK Runtime Environment 21.0.2+13-LTS
Java VM Azul Zulu OpenJDK 64-Bit Server VM 21.0.2+13-LTS (mixed mode, sharing)

Example Application

agorapulse/micronaut-aws-sdk#244

Version

4.5.0

@melix
Copy link
Collaborator

melix commented Jun 18, 2024

I think I've seen this before and it was caused by an incorrect project setup (e.g multiple kotlin plugins on classpath)

@musketyr
Copy link
Author

Thanks! I will try to dig deeper if this is the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants