Skip to content

Commit

Permalink
Make -Dquickly a bit faster
Browse files Browse the repository at this point in the history
Instantiation the plugins can actually be costly when we have so many
artifacts.
For now, I have only applied this trick where it makes a great
difference and has a low cost of maintenance.
We could also do it for Surefire.

Per a discussion with @ppalaga.
  • Loading branch information
gsmet committed Jun 5, 2024
1 parent 6776f7d commit 3c88b37
Show file tree
Hide file tree
Showing 24 changed files with 29 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<configuration>
<rules>
<dependencyConvergence/>
Expand Down Expand Up @@ -679,7 +680,7 @@
<ignoreSignaturesOfMissingClasses>true</ignoreSignaturesOfMissingClasses>
<suppressAnnotations><annotation>**.SuppressForbidden</annotation></suppressAnnotations>
</configuration>
<phase>compile</phase>
<phase>${forbiddenapis-maven-plugin.phase}</phase>
<goals>
<goal>check</goal>
</goals>
Expand Down
1 change: 1 addition & 0 deletions core/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<goals>
<goal>enforce</goal>
</goals>
Expand Down
1 change: 1 addition & 0 deletions devtools/maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@
<executions>
<execution>
<id>enforce-quarkus-maven-plugin</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<configuration>
<rules>
<bannedDependencies>
Expand Down
1 change: 1 addition & 0 deletions extensions/observability-devservices/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<configuration>
<rules combine.self="override">
<dependencyConvergence/>
Expand Down
1 change: 1 addition & 0 deletions extensions/panache/panache-mock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<configuration>
<rules combine.self="override">
<dependencyConvergence/>
Expand Down
1 change: 1 addition & 0 deletions extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<goals>
<goal>enforce</goal>
</goals>
Expand Down
1 change: 1 addition & 0 deletions extensions/security/test-utils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<configuration>
<rules combine.self="override">
<dependencyConvergence/>
Expand Down
1 change: 1 addition & 0 deletions independent-projects/arc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<configuration>
<rules>
<dependencyConvergence/>
Expand Down
1 change: 1 addition & 0 deletions independent-projects/bootstrap/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<configuration>
<rules>
<dependencyConvergence/>
Expand Down
1 change: 1 addition & 0 deletions independent-projects/extension-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<configuration>
<rules>
<dependencyConvergence/>
Expand Down
1 change: 1 addition & 0 deletions independent-projects/junit5-virtual-threads/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<configuration>
<rules>
<dependencyConvergence/>
Expand Down
1 change: 1 addition & 0 deletions independent-projects/parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<goals>
<goal>enforce</goal>
</goals>
Expand Down
1 change: 1 addition & 0 deletions independent-projects/qute/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<configuration>
<rules>
<dependencyConvergence/>
Expand Down
1 change: 1 addition & 0 deletions independent-projects/resteasy-reactive/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<configuration>
<rules>
<dependencyConvergence/>
Expand Down
1 change: 1 addition & 0 deletions independent-projects/tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<configuration>
<rules>
<externalRules>
Expand Down
1 change: 1 addition & 0 deletions integration-tests/kubernetes-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<goals>
<goal>enforce</goal>
</goals>
Expand Down
1 change: 1 addition & 0 deletions integration-tests/openshift-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<goals>
<goal>enforce</goal>
</goals>
Expand Down
1 change: 1 addition & 0 deletions integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<goals>
<goal>enforce</goal>
</goals>
Expand Down
1 change: 1 addition & 0 deletions integration-tests/virtual-threads/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<goals>
<goal>enforce</goal>
</goals>
Expand Down
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
<skipDocs>false</skipDocs>
<skip.gradle.tests>false</skip.gradle.tests>

<maven-enforcer-plugin.phase>validate</maven-enforcer-plugin.phase>
<forbiddenapis-maven-plugin.phase>verify</forbiddenapis-maven-plugin.phase>

<owasp-dependency-check-plugin.version>9.0.7</owasp-dependency-check-plugin.version>

<!-- Dependency versions -->
Expand Down Expand Up @@ -186,11 +189,13 @@
<skipITs>true</skipITs>
<skipDocs>true</skipDocs>
<enforcer.skip>true</enforcer.skip>
<maven-enforcer-plugin.phase>none</maven-enforcer-plugin.phase>
<skipExtensionValidation>true</skipExtensionValidation>
<skip.gradle.tests>true</skip.gradle.tests>
<invoker.skip>true</invoker.skip> <!-- maven-invoker-plugin -->
<jbang.skip>true</jbang.skip> <!-- jbang-maven-plugin -->
<forbiddenapis.skip>true</forbiddenapis.skip> <!-- forbidden-apis maven plugin -->
<forbiddenapis-maven-plugin.phase>none</forbiddenapis-maven-plugin.phase>
<skipCodestartValidation>true</skipCodestartValidation>
<truststore.skip>true</truststore.skip>
</properties>
Expand Down
1 change: 1 addition & 0 deletions tcks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<goals>
<goal>enforce</goal>
</goals>
Expand Down
1 change: 1 addition & 0 deletions test-framework/kubernetes-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<goals>
<goal>enforce</goal>
</goals>
Expand Down
1 change: 1 addition & 0 deletions test-framework/openshift-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<goals>
<goal>enforce</goal>
</goals>
Expand Down
1 change: 1 addition & 0 deletions test-framework/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
<executions>
<execution>
<id>enforce</id>
<phase>${maven-enforcer-plugin.phase}</phase>
<configuration>
<rules combine.self="override">
<dependencyConvergence/>
Expand Down

0 comments on commit 3c88b37

Please sign in to comment.