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

Upgrade to kotlin 2 and the stable kotlinx metadata lib #122

Open
TomJuri opened this issue Dec 26, 2024 · 1 comment
Open

Upgrade to kotlin 2 and the stable kotlinx metadata lib #122

TomJuri opened this issue Dec 26, 2024 · 1 comment

Comments

@TomJuri
Copy link

TomJuri commented Dec 26, 2024

I tried upgrading my mod to kotlin 2.1.0 today and the remapper fails with this error:

java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: kotlinx-metadata-jvm cannot write metadata for future compiler versions. Requested to write version 2.1.0, but highest known version is 2.0.0

kotlinx-metadata-jvm has become a stable library and is published under org.jetbrains.kotlin:kotlin-metadata-jvm:$kotlin_version
See here: https://github.com/JetBrains/kotlin/blob/master/libraries/kotlinx-metadata/jvm/ReadMe.md

@TomJuri
Copy link
Author

TomJuri commented Dec 30, 2024

A temporary workaround is to add
tasks.compileKotlin.get().compilerOptions.freeCompilerArgs.add("-Xmetadata-version=2.0.0")
to the buildscript.

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

1 participant