Skip to content

Commit

Permalink
fix: support mvn fmt:check and fmt:format (#1266)
Browse files Browse the repository at this point in the history
* fix: support mvn fmt:check and fmt:format

* ci: remove unnecessary root project exclusion from fmt:check
  • Loading branch information
burkedavison committed Jan 24, 2023
1 parent 8ef747b commit c96a2e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci-maven.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
<!-- Do not deploy the aggregator POM -->
<build>
<plugins>
<plugin>
<groupId>com.coveo</groupId>
<artifactId>fmt-maven-plugin</artifactId>
<version>2.9</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
Expand Down

0 comments on commit c96a2e7

Please sign in to comment.