Skip to content

feat: google-java-format version as a property #997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 4, 2025

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.

None yet

2 participants