Skip to content

Conversation

@suztomo
Copy link
Member

@suztomo suztomo commented Mar 4, 2025

b/395190324. 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

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
@suztomo suztomo requested a review from a team as a code owner March 4, 2025 19:53
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Mar 4, 2025
@suztomo suztomo merged commit 6838220 into googleapis:main Mar 4, 2025
56 of 57 checks passed
@suztomo suztomo deleted the google-java-format-property branch March 4, 2025 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: xs Pull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants