googleapis / sdk-platform-java

Tooling and shared libraries for Cloud SDK for Java
https://cloud.google.com/java/docs/bom
Apache License 2.0
68 stars 54 forks source link

Migrate the generated Gradle files to be compatible with Java 22 #3125

Open blakeli0 opened 3 months ago

blakeli0 commented 3 months ago

The generated Gradle files as part of the self service(Bazel) flow includes configurations that are not compatible with Java 22.

  1. The gradle-wrapper.properties references 7.6.4 which does not support Java 22. The earliest Gradle version that supports Java 22 is 8.8 per compatibility table.
  2. There are a few templates reference classifier, which has been deprecated since 5.1 and removed since 8.0.

We need to migrate these files to be compatible with Java 22, but also stay compatible with Java 8 and Gradle 7.x.