Skip to content

Commit

Permalink
HV-2001 Move the common parts of moditect configuration to the parent…
Browse files Browse the repository at this point in the history
… POM
  • Loading branch information
marko-bekhta committed Jul 24, 2024
1 parent 04835f8 commit 3a70a63
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 48 deletions.
21 changes: 0 additions & 21 deletions annotation-processor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,27 +137,6 @@
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<executions>
<execution>
<id>add-module-infos</id>
<phase>package</phase>
<goals>
<goal>add-module-info</goal>
</goals>
<configuration>
<module>
<moduleInfo>
<name>${java.module.name}</name>
<exports>
!org.hibernate.validator.ap.internal;
!org.hibernate.validator.ap.internal.*;
*;
</exports>
</moduleInfo>
</module>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down
10 changes: 0 additions & 10 deletions cdi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -240,19 +240,9 @@
<executions>
<execution>
<id>add-module-infos</id>
<phase>package</phase>
<goals>
<goal>add-module-info</goal>
</goals>
<configuration>
<module>
<moduleInfo>
<name>${java.module.name}</name>
<exports>
!org.hibernate.validator.*.internal;
!org.hibernate.validator.*.internal.*;
*;
</exports>
<opens>
<!-- Interceptor has to provide reflection access -->
org.hibernate.validator.cdi.interceptor.spi;
Expand Down
5 changes: 0 additions & 5 deletions engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -328,14 +328,9 @@
<executions>
<execution>
<id>add-module-infos</id>
<phase>package</phase>
<goals>
<goal>add-module-info</goal>
</goals>
<configuration>
<module>
<moduleInfo>
<name>${java.module.name}</name>
<requires>
<!-- jboss annotations are getting pulled even though they are for compilation only -->
!org.jboss.logging.annotations;
Expand Down
21 changes: 21 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1390,6 +1390,27 @@
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<version>${version.moditect.plugin}</version>
<configuration>
<module>
<moduleInfo>
<name>${java.module.name}</name>
<exports>
!org.hibernate.validator.*.internal;
!org.hibernate.validator.*.internal.*;
*;
</exports>
</moduleInfo>
</module>
</configuration>
<executions>
<execution>
<id>add-module-infos</id>
<phase>package</phase>
<goals>
<goal>add-module-info</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
Expand Down
12 changes: 0 additions & 12 deletions test-utils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,7 @@
<executions>
<execution>
<id>add-module-infos</id>
<phase>package</phase>
<goals>
<goal>add-module-info</goal>
</goals>
<configuration>
<module>
<moduleInfo>
<name>${java.module.name}</name>
<exports>
*;
</exports>
</moduleInfo>
</module>
<!--
Running the jdeps tool will fail without this option, if there are any multi-release jars
on the path. And since some modules might have such jars, e.g. AssertJ is a multi-release jar,
Expand Down

0 comments on commit 3a70a63

Please sign in to comment.