Skip to content

NoSuchMethod error from Gradle plugin's KotlinPluginAction when using Kotlin 1.5.20-RC #26864

Closed
@aerisnju

Description

@aerisnju

We use KotlinPluginWrapper.kotlinPluginVersion to get the kotlin version in boot gradle plugin as advised in #11711. But the jetbrains developers have removed the property kotlinPluginVersion recently in this change. So if we try to upgrade kotlin to 1.5.20-RC, we will see the error

* Exception is:
java.lang.NoSuchMethodError: 'java.lang.String org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper.getKotlinPluginVersion()'
	at org.springframework.boot.gradle.plugin.KotlinPluginAction.execute(KotlinPluginAction.java:36)
	at org.springframework.boot.gradle.plugin.KotlinPluginAction.execute(KotlinPluginAction.java:32)
	at org.springframework.boot.gradle.plugin.SpringBootPlugin.lambda$null$0(SpringBootPlugin.java:126)
	...

which prevents us from upgrading kotlin to 1.5.20-RC. Latest boot release 2.5.1 still has the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions