Bump kotlin to 2.4.20; as most implementations are eol... Also, as a side effect; values() will be deprecated for kotlin enums, use entries instead from 1.9 onwards
DI
3d ago+784+784+012345678901234567890123456789-616-616-012345678901234567890123456789
PR checklist
- Read the contribution guidelines.
- Run the following to build the project and update samples:
(For Windows users, please run the script in WSL)./mvnw clean package || exit ./bin/generate-samples.sh ./bin/configs/*.yaml || exit ./bin/utils/export_docs_generators.sh || exit
Commit all changed files.
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example./bin/generate-samples.sh bin/configs/java*.
IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed. - If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.
Summary by cubic
Bumps Kotlin to 2.4.20 across the generator, templates, and regenerated samples to replace end-of-life versions, and swaps deprecated values() for entries in enum codegen with no behavioral change.
- Updates Kotlin to 2.4.20 and the Gradle wrapper to 8.14.5 across templates and samples;
jvm-volleyalso bumps the Android Gradle plugin to 8.5.2. - Replaces deprecated
kotlinOptions.jvmTargetwithcompilerOptions/JvmTargetin Gradle templates, using thekotlin { compilerOptions }block for spring-cloud. - Pins
kotlin-script-utilto 1.8.22, drops the undefinedjavaslang.match.PatternsProcessorprocessor, reworks test compilation aroundK2JVMCompiler, and updates KotlinFileAssert for the new compiler API. - Switches
values()toentriesin enumfromValue/forValuemethods.