File tree 2 files changed +30
-10
lines changed 2 files changed +30
-10
lines changed Original file line number Diff line number Diff line change 1
- name : Auto-Format
1
+ name : Spotless Check
2
2
on : [push, workflow_dispatch]
3
+
4
+ concurrency :
5
+ group : " ${{ github.workflow }}-${{ github.event.number || github.ref }}"
6
+ cancel-in-progress : true
3
7
jobs :
4
- format :
8
+ check :
5
9
permissions :
6
10
contents : write
7
11
runs-on : ubuntu-latest
14
18
with :
15
19
java-version : 21
16
20
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 }}
Original file line number Diff line number Diff line change 296
296
</execution >
297
297
</executions >
298
298
</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 >
299
320
</plugins >
300
321
</pluginManagement >
301
322
</build >
308
329
</properties >
309
330
</profile >
310
331
<profile >
311
- <id >default</id >
312
- <activation >
313
- <activeByDefault >true</activeByDefault >
314
- </activation >
332
+ <id >test</id >
315
333
<modules >
316
334
<module >examples</module >
317
335
</modules >
You can’t perform that action at this time.
0 commit comments