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-616

PR checklist

  • Read the contribution guidelines.
  • Run the following to build the project and update samples:
    ./mvnw clean package || exit
    ./bin/generate-samples.sh ./bin/configs/*.yaml || exit
    ./bin/utils/export_docs_generators.sh || exit
    
    (For Windows users, please run the script in WSL)
    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-volley also bumps the Android Gradle plugin to 8.5.2.
  • Replaces deprecated kotlinOptions.jvmTarget with compilerOptions/JvmTarget in Gradle templates, using the kotlin { compilerOptions } block for spring-cloud.
  • Pins kotlin-script-util to 1.8.22, drops the undefined javaslang.match.PatternsProcessor processor, reworks test compilation around K2JVMCompiler, and updates KotlinFileAssert for the new compiler API.
  • Switches values() to entries in enum fromValue/forValue methods.