Skip to content

JVM test error: duplicate entry: META-INF/versions/9/module-info.class #47

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

Closed
sureshg opened this issue Apr 2, 2025 · 3 comments
Closed

Comments

@sureshg
Copy link

sureshg commented Apr 2, 2025

I am using the latest version of the librray with

kotlin                             = "2.1.20"
kotlin-ksp                     = "2.1.20-1.0.32"
kotlinx-coroutines        = "1.10.1"
decoroutinator             = "2.4.8"

After applying the plugin and running build throws the following error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':backend:jvm:test'.
> Could not resolve all files for configuration ':backend:jvm:testRuntimeClasspath'.
   > Failed to transform kotlinx-coroutines-debug-1.10.1.jar (org.jetbrains.kotlinx:kotlinx-coroutines-debug:1.10.1) to match attributes {artifactType=jar, dev.reformator.stacktracedecoroutinator.transformedVersion4=0, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.environment=standard-jvm, org.gradle.jvm.version=8, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=jvm}.
      > Execution failed for DecoroutinatorTransformAction: /Users/sgopal1/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-debug/1.10.1/894ec9b16eb3bb3b39037afb7eb7c86e746f5844/kotlinx-coroutines-debug-1.10.1.jar.
         > duplicate entry: META-INF/versions/9/module-info.class
@sureshg
Copy link
Author

sureshg commented Apr 8, 2025

Seems like the issue with Kotlinx coroutines . The new release seems to have a fix - https://github.com/Kotlin/kotlinx.coroutines/releases/tag/1.10.2

@Anamorphosee
Copy link
Owner

@sureshg Thanks you for the issue. It's related to duplicate entries in the dependency. I'll make a workaround in the next release.

@Anamorphosee
Copy link
Owner

fixed at 2.4.9

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