ham1 opened a new pull request, #6883: URL: https://github.com/apache/jmeter/pull/6883
## Description Set `kotlin.api.version` to 2.0, and update the changelog line that states the minimum Kotlin version. ## Motivation and Context The build uses Kotlin 2.2.21, which deprecates API level 1.9. CI prints `w: API version 1.9 is deprecated and its support will be removed in a future version of Kotlin` many times in every job. JMeter 6 already raises the minimum Java version to 17, so it is a reasonable point to raise this too. #6550 set 1.9 so that projects on Kotlin 1.9 or later could use JMeter. As far as I can tell the pin no longer achieves that for compiling against JMeter: the classes compiled on `master` carry Kotlin metadata version 2.2.0, and a Kotlin compiler reads metadata at most one minor version ahead of its own. `kotlin.api.version` limits which standard library APIs JMeter's code may call, not the metadata version, and JMeter ships `kotlin-stdlib` 2.2.21. I have not tried compiling a project with an older Kotlin against these jars. Release dates, for choosing the level: | Kotlin | Released | Status in later compilers | |---|---|---| | 1.9 | July 2023 | deprecated in 2.2 | | 2.0 | May 2024 | deprecated in 2.3 | | 2.1 | November 2024 | | | 2.2 | June 2025 | | This PR picks 2.0, the lowest level that does not warn today. It will warn again once the build moves to Kotlin 2.3 or later (see #6814), so 2.1 is the alternative if we would rather change this only once. ## How Has This Been Tested? Not built locally; relying on CI. The metadata version above comes from `javap -v` on classes compiled from `master`. ## Types of changes - Breaking change (fix or feature that would cause existing functionality to not work as expected) ## Checklist: - [ ] My code follows the [code style][style-guide] of this project. - [x] I have updated the documentation accordingly. [style-guide]: https://wiki.apache.org/jmeter/CodeStyleGuidelines -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
