From 9a21efcfc49f2382b76dda290d109a71627ae0be Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Thu, 18 Dec 2025 13:08:24 -0500 Subject: [PATCH 1/5] chore: Run errorprone for JDK 17+ --- pom.xml | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/pom.xml b/pom.xml index 18895d66c..2ee66eeb9 100644 --- a/pom.xml +++ b/pom.xml @@ -143,7 +143,6 @@ github google-cloud-datastore-parent https://googleapis.dev/java/google-api-grpc/latest - 2.31.0 @@ -233,37 +232,15 @@ - - no-errorprone-jdk-24-onwards + java17 - [24,) - - - - - maven-compiler-plugin - - true - - - -XDcompilePolicy=simple - - - - - - - - java9 - - [9,24) + [17,) org.apache.maven.plugins maven-compiler-plugin - 3.14.0 UTF-8 true From 4f8c5ee664440fdca16d715a871320904470c306 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Thu, 18 Dec 2025 13:26:37 -0500 Subject: [PATCH 2/5] chore: Enable error prone for Java 17+ --- google-cloud-datastore/pom.xml | 41 ++++++++++++++++++++++++++++++++ pom.xml | 43 +--------------------------------- 2 files changed, 42 insertions(+), 42 deletions(-) diff --git a/google-cloud-datastore/pom.xml b/google-cloud-datastore/pom.xml index 408046f92..eee9731bb 100644 --- a/google-cloud-datastore/pom.xml +++ b/google-cloud-datastore/pom.xml @@ -271,5 +271,46 @@ com.google.cloud.datastore.it.ITDatastoreConceptsTest + + java17 + + [17,) + + + + + org.apache.maven.plugins + maven-compiler-plugin + + UTF-8 + true + + -XDcompilePolicy=simple + --should-stop=ifError=FLOW + -Xplugin:ErrorProne -XepExcludedPaths:.*/generated-sources/.* + + -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED + -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED + -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED + + + + com.google.errorprone + error_prone_core + ${error-prone.version} + + + + + + + diff --git a/pom.xml b/pom.xml index 2ee66eeb9..447c04cae 100644 --- a/pom.xml +++ b/pom.xml @@ -143,6 +143,7 @@ github google-cloud-datastore-parent https://googleapis.dev/java/google-api-grpc/latest + 2.42.0 @@ -230,48 +231,6 @@ - - - java17 - - [17,) - - - - - org.apache.maven.plugins - maven-compiler-plugin - - UTF-8 - true - - -XDcompilePolicy=simple - -Xplugin:ErrorProne - -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED - -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED - -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED - - - - com.google.errorprone - error_prone_core - ${error-prone.version} - - - - - - - - - google-cloud-datastore grpc-google-cloud-datastore-admin-v1 From 1ac1fe2a77def0af65930361298f18652877689f Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Thu, 18 Dec 2025 13:30:56 -0500 Subject: [PATCH 3/5] chore: Set the error prone core version as a property --- pom.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pom.xml b/pom.xml index 447c04cae..462070dc8 100644 --- a/pom.xml +++ b/pom.xml @@ -143,6 +143,9 @@ github google-cloud-datastore-parent https://googleapis.dev/java/google-api-grpc/latest + + + 2.42.0 From d67c605d7a40c06fce1d992be7365391365cbd44 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Thu, 18 Dec 2025 14:31:22 -0500 Subject: [PATCH 4/5] chore: Add error prone configs in handwritten modules --- datastore-v1-proto-client/pom.xml | 42 ++++++++++++++++++++++++++++ google-cloud-datastore-utils/pom.xml | 42 ++++++++++++++++++++++++++++ google-cloud-datastore/pom.xml | 1 + pom.xml | 2 +- 4 files changed, 86 insertions(+), 1 deletion(-) diff --git a/datastore-v1-proto-client/pom.xml b/datastore-v1-proto-client/pom.xml index 8739f8d5f..cadbbea61 100644 --- a/datastore-v1-proto-client/pom.xml +++ b/datastore-v1-proto-client/pom.xml @@ -130,6 +130,48 @@ true + + java17 + + [17,) + + + + + org.apache.maven.plugins + maven-compiler-plugin + + UTF-8 + true + + -XDcompilePolicy=simple + --should-stop=ifError=FLOW + -Xplugin:ErrorProne -XepExcludedPaths:.*/generated-sources/.* + + -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED + -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED + -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED + + + + + com.google.errorprone + error_prone_core + ${error-prone.version} + + + + + + + diff --git a/google-cloud-datastore-utils/pom.xml b/google-cloud-datastore-utils/pom.xml index 9cdc13d78..74f717c84 100644 --- a/google-cloud-datastore-utils/pom.xml +++ b/google-cloud-datastore-utils/pom.xml @@ -107,5 +107,47 @@ true + + java17 + + [17,) + + + + + org.apache.maven.plugins + maven-compiler-plugin + + UTF-8 + true + + -XDcompilePolicy=simple + --should-stop=ifError=FLOW + -Xplugin:ErrorProne -XepExcludedPaths:.*/generated-sources/.* + + -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED + -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED + -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED + + + + + com.google.errorprone + error_prone_core + ${error-prone.version} + + + + + + + diff --git a/google-cloud-datastore/pom.xml b/google-cloud-datastore/pom.xml index eee9731bb..30867c3e3 100644 --- a/google-cloud-datastore/pom.xml +++ b/google-cloud-datastore/pom.xml @@ -300,6 +300,7 @@ -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED + com.google.errorprone diff --git a/pom.xml b/pom.xml index 462070dc8..68bde181b 100644 --- a/pom.xml +++ b/pom.xml @@ -245,4 +245,4 @@ google-cloud-datastore-utils - + From 95c9b2106b5813c047099e2b92f1cb9e0acaa355 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Thu, 18 Dec 2025 19:33:43 +0000 Subject: [PATCH 5/5] chore: generate libraries at Thu Dec 18 19:31:48 UTC 2025 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 68bde181b..462070dc8 100644 --- a/pom.xml +++ b/pom.xml @@ -245,4 +245,4 @@ google-cloud-datastore-utils - +