Code Connect Gradle plugin shouldn’t depend on kotlin-compiler-embeddable
We use the Code Connect Gradle plugin in our project.
From gradle/libs.versions.toml:
figmaCodeConnect = { id = "com.figma.code.connect", version = "1.2.1" }
I was updating our Android project to Kotlin 2.1.0. I did a build and I got a new warning:
w: The artifact `org.jetbrains.kotlin:kotlin-compiler-embeddable` is present in the build classpath along Kotlin Gradle plugin.
This may lead to unpredictable and inconsistent behavior.
For more details, see: https://kotl.in/gradle/internal-compiler-symbols
That linked doc says this:
Compiler symbols hidden from the Kotlin Gradle plugin API
Previously, KGP included org.jetbrains.kotlin:kotlin-compiler-embeddable in its runtime dependencies, making internal compiler symbols available in the build script classpath. These symbols were intended for internal use only.
Starting with Kotlin 2.1.0, KGP bundles a subset of org.jetbrains.kotlin:kotlin-compiler-embeddable class files in its JAR file and progressively removes them. This change aims to prevent compatibility issues and simplify KGP maintenance. ...
Figma Code Connect is the cause of this warning:
./gradlew buildEnvironment
...
+--- com.figma.code.connect:com.figma.code.connect.gradle.plugin:1.2.1
| \--- com.figma.code.connect:plugin:1.2.1
| +--- org.jetbrains.kotlin:kotlin-compiler-embeddable:2.0.0 -> 2.0.21
Could you please update the Gradle plugin to resolve this warning? Thank you!
Hey @squarejesse, thanks for the investigation! We've been having issues upgrading to support Kotlin 2.1.0 but are still investigating. Will hopefully have an update for you soon!
@slees-figma any updates?
Hey @sjaramillo10 apologies for the lack of updates here. I'll follow up with the team :)
@slees-figma
Could you tell me if you have any updates?
I'm having trouble because of exported kotlin-compiler-embeddable