diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 7d6835204..486c321f7 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -19,7 +19,7 @@ jobs: distribution: adopt java-version: 17 - name: Build with Maven - run: mvn -B --no-transfer-progress -Prat -DskipTests verify + run: mvn -B --no-transfer-progress -Prat -DskipTests verify -Dskip.format.code=false build: needs: rat diff --git a/README.md b/README.md index 627225703..d8e515ea8 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,12 @@ If you are running commands in a zsh shell, you may need to execute: mvn git-code-format:format-code -Dgcf.globPattern="**/*" ``` +You can enable pre-commit format hooks by running: + +``` +mvn clean install -Dskip.format.code=false +``` + ## Thanks ![alt tag](https://www.yourkit.com/images/yklogo.png) diff --git a/pom.xml b/pom.xml index aa76643d2..8dc14cef0 100644 --- a/pom.xml +++ b/pom.xml @@ -73,6 +73,8 @@ under the License. 1.19.7 2.4.0 0.8.11 + + true @@ -292,6 +294,7 @@ under the License. + ${skip.format.code} true false