Skip to content

Commit b9b3cd3

Browse files
author
Vincent Potucek
committed
consolidate root for spotless-maven-plugin, formatter-maven-plugin and impsort-maven-plugin
1 parent 6f7b037 commit b9b3cd3

File tree

11 files changed

+97
-719
lines changed

11 files changed

+97
-719
lines changed

build-parent/pom.xml

Lines changed: 0 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -673,11 +673,6 @@
673673
<artifactId>smallrye-certificate-generator-maven-plugin</artifactId>
674674
<version>${smallrye-certificate-generator.version}</version>
675675
</plugin>
676-
<plugin>
677-
<groupId>com.diffplug.spotless</groupId>
678-
<artifactId>spotless-maven-plugin</artifactId>
679-
<version>2.44.4</version>
680-
</plugin>
681676
</plugins>
682677
</pluginManagement>
683678
</build>
@@ -723,92 +718,7 @@
723718
</plugins>
724719
</build>
725720
</profile>
726-
<profile>
727-
<id>validate</id>
728-
<activation>
729-
<activeByDefault>true</activeByDefault>
730-
<property>
731-
<name>no-format</name>
732-
</property>
733-
</activation>
734-
<build>
735-
<plugins>
736-
<plugin>
737-
<groupId>net.revelc.code.formatter</groupId>
738-
<artifactId>formatter-maven-plugin</artifactId>
739-
<executions>
740-
<execution>
741-
<phase>process-sources</phase>
742-
<goals>
743-
<goal>validate</goal>
744-
</goals>
745-
</execution>
746-
</executions>
747-
</plugin>
748-
<plugin>
749-
<groupId>net.revelc.code</groupId>
750-
<artifactId>impsort-maven-plugin</artifactId>
751-
<configuration>
752-
<removeUnused>true</removeUnused>
753-
</configuration>
754-
<executions>
755-
<execution>
756-
<id>check-imports</id>
757-
<goals>
758-
<goal>check</goal>
759-
</goals>
760-
</execution>
761-
</executions>
762-
</plugin>
763-
</plugins>
764-
</build>
765-
</profile>
766721

767-
<profile>
768-
<id>format-kotlin</id>
769-
<activation>
770-
<activeByDefault>true</activeByDefault>
771-
<property>
772-
<name>!no-format</name>
773-
</property>
774-
<file>
775-
<exists>src/main/kotlin</exists>
776-
</file>
777-
</activation>
778-
<build>
779-
<plugins>
780-
<plugin>
781-
<groupId>com.diffplug.spotless</groupId>
782-
<artifactId>spotless-maven-plugin</artifactId>
783-
<executions>
784-
<execution>
785-
<id>format-kotlin</id>
786-
<phase>process-sources</phase>
787-
<goals>
788-
<goal>apply</goal>
789-
</goals>
790-
</execution>
791-
</executions>
792-
793-
<configuration>
794-
<kotlin>
795-
<ktfmt>
796-
<style>KOTLINLANG</style>
797-
<!-- optional, other options are DEFAULT, DROPBOX, GOOGLE and KOTLINLANG -->
798-
</ktfmt>
799-
800-
<!--
801-
<ktfmt>
802-
<style>DEFAULT</style> &lt;!&ndash; optional, other options are DEFAULT, DROPBOX, GOOGLE and KOTLINLANG &ndash;&gt;
803-
</ktfmt>
804-
-->
805-
806-
</kotlin>
807-
</configuration>
808-
</plugin>
809-
</plugins>
810-
</build>
811-
</profile>
812722
<profile>
813723
<id>dokka</id>
814724
<activation>

extensions/websockets-next/deployment/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,7 @@
196196
<properties>
197197
<maven.compiler.target>21</maven.compiler.target>
198198
<maven.compiler.source>21</maven.compiler.source>
199-
<!-- javaparser 3.25.10 used by impsort-maven-plugin does not define the "language level" for 21 -->
200-
<!--maven.compiler.release>21</maven.compiler.release-->
199+
<maven.compiler.release>21</maven.compiler.release>
201200
</properties>
202201
<build>
203202
<plugins>

independent-projects/arc/pom.xml

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -316,86 +316,6 @@
316316
<format.skip>true</format.skip>
317317
</properties>
318318
</profile>
319-
<profile>
320-
<id>format</id>
321-
<activation>
322-
<activeByDefault>true</activeByDefault>
323-
<property>
324-
<name>!no-format</name>
325-
</property>
326-
</activation>
327-
<build>
328-
<plugins>
329-
<plugin>
330-
<groupId>net.revelc.code.formatter</groupId>
331-
<artifactId>formatter-maven-plugin</artifactId>
332-
<executions>
333-
<execution>
334-
<phase>process-sources</phase>
335-
<goals>
336-
<goal>format</goal>
337-
</goals>
338-
</execution>
339-
</executions>
340-
</plugin>
341-
<plugin>
342-
<groupId>net.revelc.code</groupId>
343-
<artifactId>impsort-maven-plugin</artifactId>
344-
<executions>
345-
<execution>
346-
<id>sort-imports</id>
347-
<goals>
348-
<goal>sort</goal>
349-
</goals>
350-
</execution>
351-
</executions>
352-
<configuration>
353-
<removeUnused>true</removeUnused>
354-
</configuration>
355-
</plugin>
356-
</plugins>
357-
</build>
358-
</profile>
359-
<profile>
360-
<id>validate</id>
361-
<activation>
362-
<activeByDefault>true</activeByDefault>
363-
<property>
364-
<name>no-format</name>
365-
</property>
366-
</activation>
367-
<build>
368-
<plugins>
369-
<plugin>
370-
<groupId>net.revelc.code.formatter</groupId>
371-
<artifactId>formatter-maven-plugin</artifactId>
372-
<executions>
373-
<execution>
374-
<phase>process-sources</phase>
375-
<goals>
376-
<goal>validate</goal>
377-
</goals>
378-
</execution>
379-
</executions>
380-
</plugin>
381-
<plugin>
382-
<groupId>net.revelc.code</groupId>
383-
<artifactId>impsort-maven-plugin</artifactId>
384-
<configuration>
385-
<removeUnused>true</removeUnused>
386-
</configuration>
387-
<executions>
388-
<execution>
389-
<id>check-imports</id>
390-
<goals>
391-
<goal>check</goal>
392-
</goals>
393-
</execution>
394-
</executions>
395-
</plugin>
396-
</plugins>
397-
</build>
398-
</profile>
399319
</profiles>
400320

401321
</project>

independent-projects/bootstrap/pom.xml

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -228,85 +228,5 @@
228228
<format.skip>true</format.skip>
229229
</properties>
230230
</profile>
231-
<profile>
232-
<id>format</id>
233-
<activation>
234-
<activeByDefault>true</activeByDefault>
235-
<property>
236-
<name>!no-format</name>
237-
</property>
238-
</activation>
239-
<build>
240-
<plugins>
241-
<plugin>
242-
<groupId>net.revelc.code.formatter</groupId>
243-
<artifactId>formatter-maven-plugin</artifactId>
244-
<executions>
245-
<execution>
246-
<phase>process-sources</phase>
247-
<goals>
248-
<goal>format</goal>
249-
</goals>
250-
</execution>
251-
</executions>
252-
</plugin>
253-
<plugin>
254-
<groupId>net.revelc.code</groupId>
255-
<artifactId>impsort-maven-plugin</artifactId>
256-
<executions>
257-
<execution>
258-
<id>sort-imports</id>
259-
<goals>
260-
<goal>sort</goal>
261-
</goals>
262-
</execution>
263-
</executions>
264-
<configuration>
265-
<removeUnused>true</removeUnused>
266-
</configuration>
267-
</plugin>
268-
</plugins>
269-
</build>
270-
</profile>
271-
<profile>
272-
<id>validate</id>
273-
<activation>
274-
<activeByDefault>true</activeByDefault>
275-
<property>
276-
<name>no-format</name>
277-
</property>
278-
</activation>
279-
<build>
280-
<plugins>
281-
<plugin>
282-
<groupId>net.revelc.code.formatter</groupId>
283-
<artifactId>formatter-maven-plugin</artifactId>
284-
<executions>
285-
<execution>
286-
<phase>process-sources</phase>
287-
<goals>
288-
<goal>validate</goal>
289-
</goals>
290-
</execution>
291-
</executions>
292-
</plugin>
293-
<plugin>
294-
<groupId>net.revelc.code</groupId>
295-
<artifactId>impsort-maven-plugin</artifactId>
296-
<configuration>
297-
<removeUnused>true</removeUnused>
298-
</configuration>
299-
<executions>
300-
<execution>
301-
<id>check-imports</id>
302-
<goals>
303-
<goal>check</goal>
304-
</goals>
305-
</execution>
306-
</executions>
307-
</plugin>
308-
</plugins>
309-
</build>
310-
</profile>
311231
</profiles>
312232
</project>

independent-projects/enforcer-rules/pom.xml

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -162,85 +162,5 @@
162162
<invoker.skip>true</invoker.skip> <!-- maven-invoker-plugin -->
163163
</properties>
164164
</profile>
165-
<profile>
166-
<id>format</id>
167-
<activation>
168-
<activeByDefault>true</activeByDefault>
169-
<property>
170-
<name>!no-format</name>
171-
</property>
172-
</activation>
173-
<build>
174-
<plugins>
175-
<plugin>
176-
<groupId>net.revelc.code.formatter</groupId>
177-
<artifactId>formatter-maven-plugin</artifactId>
178-
<executions>
179-
<execution>
180-
<phase>process-sources</phase>
181-
<goals>
182-
<goal>format</goal>
183-
</goals>
184-
</execution>
185-
</executions>
186-
</plugin>
187-
<plugin>
188-
<groupId>net.revelc.code</groupId>
189-
<artifactId>impsort-maven-plugin</artifactId>
190-
<executions>
191-
<execution>
192-
<id>sort-imports</id>
193-
<goals>
194-
<goal>sort</goal>
195-
</goals>
196-
</execution>
197-
</executions>
198-
<configuration>
199-
<removeUnused>true</removeUnused>
200-
</configuration>
201-
</plugin>
202-
</plugins>
203-
</build>
204-
</profile>
205-
<profile>
206-
<id>validate</id>
207-
<activation>
208-
<activeByDefault>true</activeByDefault>
209-
<property>
210-
<name>no-format</name>
211-
</property>
212-
</activation>
213-
<build>
214-
<plugins>
215-
<plugin>
216-
<groupId>net.revelc.code.formatter</groupId>
217-
<artifactId>formatter-maven-plugin</artifactId>
218-
<executions>
219-
<execution>
220-
<phase>process-sources</phase>
221-
<goals>
222-
<goal>validate</goal>
223-
</goals>
224-
</execution>
225-
</executions>
226-
</plugin>
227-
<plugin>
228-
<groupId>net.revelc.code</groupId>
229-
<artifactId>impsort-maven-plugin</artifactId>
230-
<configuration>
231-
<removeUnused>true</removeUnused>
232-
</configuration>
233-
<executions>
234-
<execution>
235-
<id>check-imports</id>
236-
<goals>
237-
<goal>check</goal>
238-
</goals>
239-
</execution>
240-
</executions>
241-
</plugin>
242-
</plugins>
243-
</build>
244-
</profile>
245165
</profiles>
246166
</project>

0 commit comments

Comments
 (0)