Skip to content

Commit 2ba4af6

Browse files
committed
Add spotless integration for mvn and GitHub
1 parent 98c49dc commit 2ba4af6

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

.github/workflows/loom-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ jobs:
4545
restore-keys: ${{ runner.os }}-m2
4646

4747
- name: Build with Maven
48-
run: mvn -B package --file pom.xml
48+
run: mvn -B verify --file pom.xml -DargLine="--enable-preview"

pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,32 @@
4949
</dependencyManagement>
5050

5151
<build>
52+
<plugins>
53+
<plugin>
54+
<groupId>com.diffplug.spotless</groupId>
55+
<artifactId>spotless-maven-plugin</artifactId>
56+
<version>3.0.0</version>
57+
<configuration>
58+
<java>
59+
<eclipse />
60+
</java>
61+
</configuration>
62+
<executions>
63+
<execution>
64+
<phase>compile</phase>
65+
<goals>
66+
<goal>apply</goal>
67+
</goals>
68+
</execution>
69+
<execution>
70+
<phase>verify</phase>
71+
<goals>
72+
<goal>check</goal>
73+
</goals>
74+
</execution>
75+
</executions>
76+
</plugin>
77+
</plugins>
5278
<pluginManagement>
5379
<plugins>
5480
<plugin>

0 commit comments

Comments
 (0)