Skip to content

Commit b23cc08

Browse files
committed
formatter and impsort maven plugin configs
1 parent 0f1d6dc commit b23cc08

File tree

7 files changed

+496
-1
lines changed

7 files changed

+496
-1
lines changed

dsf-bpe-process-feasibility/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
<groupId>org.highmed.dsf</groupId>
1111
<version>0.5.0-SNAPSHOT</version>
1212
</parent>
13+
14+
<properties>
15+
<main.basedir>${project.basedir}/..</main.basedir>
16+
</properties>
1317

1418
<dependencies>
1519
<dependency>

dsf-bpe-process-local-services/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
<groupId>org.highmed.dsf</groupId>
1212
<version>0.5.0-SNAPSHOT</version>
1313
</parent>
14+
15+
<properties>
16+
<main.basedir>${project.basedir}/..</main.basedir>
17+
</properties>
1418

1519
<dependencies>
1620
<dependency>

dsf-bpe-process-ping/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
<artifactId>dsf-bpe-highmed-processes-pom</artifactId>
1010
<version>0.5.0-SNAPSHOT</version>
1111
</parent>
12+
13+
<properties>
14+
<main.basedir>${project.basedir}/..</main.basedir>
15+
</properties>
1216

1317
<dependencies>
1418
<dependency>

dsf-bpe-process-update-allow-list/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
<artifactId>dsf-bpe-highmed-processes-pom</artifactId>
1010
<version>0.5.0-SNAPSHOT</version>
1111
</parent>
12+
13+
<properties>
14+
<main.basedir>${project.basedir}/..</main.basedir>
15+
</properties>
1216

1317
<dependencies>
1418
<dependency>

dsf-bpe-process-update-resources/pom.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
<artifactId>dsf-bpe-highmed-processes-pom</artifactId>
1010
<version>0.5.0-SNAPSHOT</version>
1111
</parent>
12+
13+
<properties>
14+
<main.basedir>${project.basedir}/..</main.basedir>
15+
</properties>
1216

1317
<dependencies>
1418
<dependency>
@@ -17,7 +21,6 @@
1721
<scope>provided</scope>
1822
</dependency>
1923

20-
2124
<dependency>
2225
<groupId>de.hs-heilbronn.mi</groupId>
2326
<artifactId>log4j2-utils</artifactId>

pom.xml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2222
<compileSource>11</compileSource>
2323
<compileTarget>11</compileTarget>
24+
25+
<main.basedir>${project.basedir}</main.basedir>
2426
</properties>
2527

2628
<name>highmed-processes</name>
@@ -183,6 +185,16 @@
183185
<artifactId>maven-clean-plugin</artifactId>
184186
<version>3.1.0</version>
185187
</plugin>
188+
<plugin>
189+
<groupId>net.revelc.code.formatter</groupId>
190+
<artifactId>formatter-maven-plugin</artifactId>
191+
<version>2.13.0</version>
192+
</plugin>
193+
<plugin>
194+
<groupId>net.revelc.code</groupId>
195+
<artifactId>impsort-maven-plugin</artifactId>
196+
<version>1.5.0</version>
197+
</plugin>
186198
</plugins>
187199
</pluginManagement>
188200

@@ -204,6 +216,22 @@
204216
<useLastCommittedRevision>true</useLastCommittedRevision>
205217
</configuration>
206218
</plugin>
219+
<plugin>
220+
<groupId>net.revelc.code.formatter</groupId>
221+
<artifactId>formatter-maven-plugin</artifactId>
222+
<configuration>
223+
<configFile>${main.basedir}/src/main/resources/eclipse-formatter-config.xml</configFile>
224+
</configuration>
225+
</plugin>
226+
<plugin>
227+
<groupId>net.revelc.code</groupId>
228+
<artifactId>impsort-maven-plugin</artifactId>
229+
<configuration>
230+
<compliance>11</compliance>
231+
<groups>java.,javax.,org.,com.</groups>
232+
<staticGroups>java,*</staticGroups>
233+
</configuration>
234+
</plugin>
207235
</plugins>
208236
</build>
209237

@@ -231,4 +259,70 @@
231259
</snapshots>
232260
</repository>
233261
</repositories>
262+
263+
<profiles>
264+
<profile>
265+
<id>format-and-sort</id>
266+
267+
<build>
268+
<plugins>
269+
<plugin>
270+
<groupId>net.revelc.code.formatter</groupId>
271+
<artifactId>formatter-maven-plugin</artifactId>
272+
<executions>
273+
<execution>
274+
<goals>
275+
<goal>format</goal>
276+
</goals>
277+
</execution>
278+
</executions>
279+
</plugin>
280+
<plugin>
281+
<groupId>net.revelc.code</groupId>
282+
<artifactId>impsort-maven-plugin</artifactId>
283+
<executions>
284+
<execution>
285+
<goals>
286+
<goal>sort</goal>
287+
</goals>
288+
</execution>
289+
</executions>
290+
</plugin>
291+
</plugins>
292+
</build>
293+
</profile>
294+
<profile>
295+
<id>validate-and-check</id>
296+
<activation>
297+
<activeByDefault>true</activeByDefault>
298+
</activation>
299+
300+
<build>
301+
<plugins>
302+
<plugin>
303+
<groupId>net.revelc.code.formatter</groupId>
304+
<artifactId>formatter-maven-plugin</artifactId>
305+
<executions>
306+
<execution>
307+
<goals>
308+
<goal>validate</goal>
309+
</goals>
310+
</execution>
311+
</executions>
312+
</plugin>
313+
<plugin>
314+
<groupId>net.revelc.code</groupId>
315+
<artifactId>impsort-maven-plugin</artifactId>
316+
<executions>
317+
<execution>
318+
<goals>
319+
<goal>check</goal>
320+
</goals>
321+
</execution>
322+
</executions>
323+
</plugin>
324+
</plugins>
325+
</build>
326+
</profile>
327+
</profiles>
234328
</project>

0 commit comments

Comments
 (0)