Skip to content

Commit 8b4cb6f

Browse files
committed
spotless check
1 parent 77ccf1c commit 8b4cb6f

File tree

2 files changed

+30
-10
lines changed

2 files changed

+30
-10
lines changed
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
name: Auto-Format
1+
name: Spotless Check
22
on: [push, workflow_dispatch]
3+
4+
concurrency:
5+
group: "${{ github.workflow }}-${{ github.event.number || github.ref }}"
6+
cancel-in-progress: true
37
jobs:
4-
format:
8+
check:
59
permissions:
610
contents: write
711
runs-on: ubuntu-latest
@@ -14,7 +18,5 @@ jobs:
1418
with:
1519
java-version: 21
1620
distribution: 'zulu'
17-
- name: Format Code
18-
uses: axel-op/googlejavaformat-action@v3
19-
with:
20-
args: "--skip-sorting-imports --replace"
21+
- name: Run Spotless Check
22+
run: mvn --batch-mode --no-transfer-progress spotless:check ${{ inputs.maven-args }}

pom.xml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,27 @@
296296
</execution>
297297
</executions>
298298
</plugin>
299+
<plugin>
300+
<groupId>com.diffplug.spotless</groupId>
301+
<artifactId>spotless-maven-plugin</artifactId>
302+
<version>2.44.2</version>
303+
<configuration>
304+
<java>
305+
<palantirJavaFormat>
306+
<style>PALANTIR</style>
307+
<formatJavadoc>true</formatJavadoc>
308+
</palantirJavaFormat>
309+
<indent>
310+
<tabs>true</tabs>
311+
<spacesPerTab>4</spacesPerTab>
312+
</indent>
313+
<indent>
314+
<spaces>true</spaces>
315+
<spacesPerTab>2</spacesPerTab>
316+
</indent>
317+
</java>
318+
</configuration>
319+
</plugin>
299320
</plugins>
300321
</pluginManagement>
301322
</build>
@@ -308,10 +329,7 @@
308329
</properties>
309330
</profile>
310331
<profile>
311-
<id>default</id>
312-
<activation>
313-
<activeByDefault>true</activeByDefault>
314-
</activation>
332+
<id>test</id>
315333
<modules>
316334
<module>examples</module>
317335
</modules>

0 commit comments

Comments
 (0)