FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 17358740 authored by Kevin Hooke's avatar Kevin Hooke
Browse files

docs: added warning about java formatter requiring Java 11

parent b256192a
No related branches found
No related tags found
1 merge request!460Updated pre-commit config page to add git blame note
Pipeline #715784 passed
...@@ -144,6 +144,16 @@ pre-commit. This allows you to review the changes and commit any updates to cont ...@@ -144,6 +144,16 @@ pre-commit. This allows you to review the changes and commit any updates to cont
To run locally, the current `v1.2.0` version of the pre-commit formatter requires Java 11 in your To run locally, the current `v1.2.0` version of the pre-commit formatter requires Java 11 in your
path. path.
!!! warning
Minor differences in Java source formatting have been seen when running the
`google-java-format` pre-commit hook locally with Java versions > 11 compared to the results
when the hook runs as part of a GitLab pipeline (which is currently running the formatter with
Java 11). To avoid inconsistencies it is recommended that you **must** run the formatter with
Java 11 in your path.
If your Java project requires a different version of Java to compile, you can use
[sdkman](https://sdkman.io/) to easily switch between different versions at your command line.
#### Configuring Git to ignore bulk formatting commits #### Configuring Git to ignore bulk formatting commits
Adding the Adding the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment