Hey where can I configure the Kotlin version to us...
# fleet
k
Hey where can I configure the Kotlin version to use for Fleet. I am running the tests through clicking the Play button in the Junit test file and I am seeing in the Logs the following:
Kotlin:INFO:kotlinc-jvm 1.9.21 (JRE 21.0.4+7-LTS)
But the project should use Kotlin 2.0.0. How can I configure this ?
@andrey.dernov @Wout Werkman Can you support here maybe?
I tried to configure the Kotlin version in settings.json but then I get from Fleet that it can download Kotlin
Can anybody support here ? It seems that because of this when trying to run the tests it cannot compile them as it tries to use Kotlin 1.9
👀 1
@ok ?
o
Hi! Do you use build.gradle.kts? You may try the following (please see the pic)
k
I am using maven and Kotlin version is specified in the pom file
o
Can you please share the little sample project for us to reproduce?
k
Yes https://github.com/akoufa/fleetissues/blob/master/src/test/kotlin/com/koufatzis/fleetissues/FleetIssuesJUnit.kt . If you run the unit tests in this file by clicking ▶️ Fleet seems to use Kotlin 1.9
thank you 1
@ok Did you manage to reproduce it ? Should I create a Bug on YouTrack for this?
o
@koufa hi, the case is reproduced on my side, please follow the issue: https://youtrack.jetbrains.com/issue/FL-28937/Cant-define-Kotlin-version-in-pom-xml Thank you for reporting this!
k
Thank you 🙂
👍🏿 1