From 916d2aa7206f503e51bc989d518c3c6a8a9532ae Mon Sep 17 00:00:00 2001 From: Burke Davison <40617934+burkedavison@users.noreply.github.com> Date: Tue, 24 Jan 2023 15:14:42 -0500 Subject: [PATCH] fix: support mvn fmt:check and fmt:format (#1266) * fix: support mvn fmt:check and fmt:format * ci: remove unnecessary root project exclusion from fmt:check --- .github/workflows/ci-maven.yaml | 2 +- pom.xml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-maven.yaml b/.github/workflows/ci-maven.yaml index 76a7206815..5616767d45 100644 --- a/.github/workflows/ci-maven.yaml +++ b/.github/workflows/ci-maven.yaml @@ -148,7 +148,7 @@ jobs: - run: java -version - name: Java Linter # Exclude the root project - run: mvn -B -ntp --projects '!.' fmt:check + run: mvn -B -ntp fmt:check showcase: runs-on: ubuntu-latest diff --git a/pom.xml b/pom.xml index 5cf661aae5..332a20e88c 100644 --- a/pom.xml +++ b/pom.xml @@ -25,6 +25,11 @@ + + com.coveo + fmt-maven-plugin + 2.9 + org.apache.maven.plugins maven-deploy-plugin