Skip to content

Commit c96a2e7

Browse files
authored
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
1 parent 8ef747b commit c96a2e7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/ci-maven.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
- run: java -version
149149
- name: Java Linter
150150
# Exclude the root project
151-
run: mvn -B -ntp --projects '!.' fmt:check
151+
run: mvn -B -ntp fmt:check
152152

153153
showcase:
154154
runs-on: ubuntu-latest

pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
<!-- Do not deploy the aggregator POM -->
2626
<build>
2727
<plugins>
28+
<plugin>
29+
<groupId>com.coveo</groupId>
30+
<artifactId>fmt-maven-plugin</artifactId>
31+
<version>2.9</version>
32+
</plugin>
2833
<plugin>
2934
<groupId>org.apache.maven.plugins</groupId>
3035
<artifactId>maven-deploy-plugin</artifactId>

0 commit comments

Comments
 (0)