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

Class 'org.springframework.cloud.gateway.route.builder.RouteDslKt' is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler #3333

Closed
sandra-markerud opened this issue Apr 2, 2024 · 6 comments
Labels
Milestone

Comments

@sandra-markerud
Copy link

Describe the bug
When upgrading dependency org.springframework.cloud:spring-cloud-dependencies from 2023.0.0 to 2023.0.1 the project does not compile anymore.

Class 'org.springframework.cloud.gateway.route.builder.RouteDslKt' is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler

Sample
Working sample with spring-cloud-dependencies 2023.0.0
https://github.com/sandra-markerud/spring-cloud-gateway-upgrade/tree/spring-boot-3.x-upgrade

Broken sample with spring-cloud-dependencies 2023.0.1
https://github.com/sandra-markerud/spring-cloud-gateway-upgrade/tree/feature/spring-cloud-dependencies_2023.0.1

@spencergibb spencergibb transferred this issue from spring-cloud/spring-cloud-release Apr 2, 2024
@spencergibb
Copy link
Member

Indeed, it looks like it is compiled with 2.0.0-Beta5, but gateway isn't managing the version of the maven kotlin plugin.

@spencergibb spencergibb added this to the 4.1.3 milestone Apr 4, 2024
@debop
Copy link

debop commented Apr 6, 2024

Same issue occurred.

Use JDK 21, Spring Boot 3.2.4, Kotlin 1.9.23

Spring Cloude Depencencies 2023.0.0 works,
But 2023.0.1 occur at RouteDslKt

@spencergibb
Copy link
Member

Fixed in 2023.0.2-SNAPSHOT

@grassehh
Copy link

Hello, is there a workaround?

@sandra-markerud
Copy link
Author

Any information, when 2023.0.2 will be released?

@spencergibb
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

4 participants