From de49b22b7fb2a5d9d5c9de656a7154153704d8d6 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Tue, 4 Mar 2025 14:51:42 -0500 Subject: [PATCH] feat: google-java-format version as a property Once we declare this version as a property, then the hermetic build script can use the property value to determine the version of the google-java-format to download when it builds the container image. $ JAVA_FORMAT_VERSION=$(mvn -pl java-shared-config help:evaluate -Dexpression='google-java-format.version' -q -DforceStdout) $ echo $JAVA_FORMAT_VERSION 1.7 This uses https://maven.apache.org/plugins/maven-help-plugin/evaluate-mojo.html --- java-shared-config/pom.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java-shared-config/pom.xml b/java-shared-config/pom.xml index 4b032bcd..287be32e 100644 --- a/java-shared-config/pom.xml +++ b/java-shared-config/pom.xml @@ -28,6 +28,7 @@ true 1.11.0 /java/docs/reference/ + 1.7 @@ -179,7 +180,7 @@ com.google.googlejavaformat google-java-format - 1.7 + ${google-java-format.version}