-
Notifications
You must be signed in to change notification settings - Fork 627
Kotlin compilation error with spring-cloud-function 4.2.0- #1218
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
Comments
We do not specify Kotlin version anywhere in s-c-function, so it is pulled transitively. Please let me know, so I can close this issue |
See #1015. In my tests, I see the kotlin-maven-plugin using a 2.1.0 plugin. There might be some times it gets 2.1.0 and other times it doesn't. |
Seems like it is indeed random, so we need to be explicit about it. . . |
Wonderful, thanks @olegz and @spencergibb! |
Hi @olegz is there a snapshot available anywhere that contains this fix? I'm unable to upgrade to Spring Boot 3.4.x until I can get access to this fix. 🙏 |
I have same issue. |
issue seems to be introduced from 4.1.4 onwards, here is what I tested
|
Can you try 4.2.1? |
4.2.1 works on my machine, edited my comment for clarification. There is no version of org.springframework.cloud:spring-cloud-dependencies yet that includes that release so I had to specify the version manually val cloudStreamVersion = "2024.0.0"
implementation(platform("org.springframework.cloud:spring-cloud-dependencies:$cloudStreamVersion"))
testImplementation(platform("org.springframework.cloud:spring-cloud-dependencies:$cloudStreamVersion"))
implementation("org.springframework.cloud:spring-cloud-function-context:4.2.1")
implementation("org.springframework.cloud:spring-cloud-starter")
implementation("org.springframework.cloud:spring-cloud-starter-stream-kafka") |
That is correct, it was specifically released outside the release train, in part, for this issue. |
Are there plans to backport the fix to 4.1? |
Describe the bug
Kotlin compilation error with spring-cloud-function
4.2.0
Versions of the framework:
Sample
To reproduce:
Current behavior
Compilation error:
Expected behavior
No compilation error
Added minimal reproducer project just in case:
demo3.zip
The text was updated successfully, but these errors were encountered: