Skip to content

Kotlin 2.1 warning due to JTE accessing hidden compiler symbols. #407

Open
@sureshg

Description

Kotlin 2.1 now throws a warning and will soon prohibit accessing kotlin-compiler-embeddable from build scripts. I am now starting to get warning messages from build scripts which use theJTE plugin. When i checked the dependencies for the build plugin, kotlin-compiler-embeddable is used by JTE and the Kotlin 2.1 doc suggests the following workaround to fix the issue.

org.jetbrains.kotlin:kotlin-compiler-embeddable:1.9.10 -> 2.1.0
\--- gg.jte:jte-kotlin:3.1.15
     \--- gg.jte:jte-gradle-plugin:3.1.15
          \--- runtimeClasspath
> Configure project :shared
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

> Configure project :web
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions