-
Notifications
You must be signed in to change notification settings - Fork 620
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
Cannot properly install KxS #2710
Comments
As far as I understand, you're writing a plugin for IntelliJ. It indeed has some bundled version of serialization, which may not be up-to-date. I suggest you create a ticket in the Intellij platform subsystem (https://youtrack.jetbrains.com/issues/IJPL); maybe they have a solution, as I am not directly involved in it. |
Yep you got it correctly! Sorry for being unclear. But yeah, I'll create a ticket, thanks! Edit: opened! |
@sandwwraith ok that looks a bit like what I meant to do with Gradle; I'm going to try that filtering thing while the ticket's being processed! Thanks |
@sandwwraith I can't manage to make it work: // build.gradle.kts
...
tasks {
shadowJar {
relocate("kotlinx.serialization.json", "a") {
exclude("kotlinx.serialization.json.*")
}
}
... This does absolutely nothing |
Describe the bug
Based on https://github.com/JetBrains/intellij-platform-plugin-template, I'm trying to use kotlinx.serialization for a plugin. However, despite multiple attempts with different configurations, I cannot make the plugin to get installed properly: my setup seems to be using an old KxS bundled with Kotlin instead of the one I'm telling it to use.
I tried entirely cleaning my Gradle cache, restarting the IDE, re-building from scratch without cache, hardcoding the dependencies in my
kts
file... (I've been trying for multiple previous Gradle versions too)To Reproduce
Use this
libs.versions.toml
(truncated for brevity):and this
build.gradle.kts
(truncated for brevity):Expected behavior
To use the version of the library I want it to use (1.6.3 here)
Environment
The text was updated successfully, but these errors were encountered: