Skip to content

Commit

Permalink
HV-1725 Explicitly ban javax dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Oct 18, 2019
1 parent 77c2a79 commit fdfa7ce
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 0 deletions.
22 changes: 22 additions & 0 deletions cdi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,28 @@
<groupId>org.jboss.weld</groupId>
<artifactId>weld-core-impl</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.jboss.spec.javax.el</groupId>
<artifactId>jboss-el-api_3.0_spec</artifactId>
</exclusion>
<exclusion>
<groupId>org.jboss.spec.javax.interceptor</groupId>
<artifactId>
jboss-interceptors-api_1.2_spec
</artifactId>
</exclusion>
<exclusion>
<groupId>org.jboss.spec.javax.annotation</groupId>
<artifactId>
jboss-annotations-api_1.3_spec
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
Expand Down
12 changes: 12 additions & 0 deletions engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,18 @@
<groupId>org.javamoney</groupId>
<artifactId>moneta</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- For Moneta -->
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down
34 changes: 34 additions & 0 deletions integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@
<groupId>org.javamoney</groupId>
<artifactId>moneta</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- For Moneta -->
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.testng</groupId>
Expand All @@ -91,6 +103,28 @@
<groupId>org.jboss.weld</groupId>
<artifactId>weld-core-impl</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.jboss.spec.javax.interceptor</groupId>
<artifactId>
jboss-interceptors-api_1.2_spec
</artifactId>
</exclusion>
<exclusion>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>jakarta.interceptor</groupId>
<artifactId>jakarta.interceptor-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>jakarta.enterprise</groupId>
<artifactId>jakarta.enterprise.cdi-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>jakarta.persistence</groupId>
Expand Down
12 changes: 12 additions & 0 deletions osgi/integrationtest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@
<groupId>org.javamoney</groupId>
<artifactId>moneta</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- For Moneta -->
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<scope>test</scope>
</dependency>

<!-- script engines -->
Expand Down
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,16 @@
<requireMavenVersion>
<version>${maven.min.version}</version>
</requireMavenVersion>
<bannedDependencies>
<excludes>
<exclude>javax.validation:validation-api</exclude>
<exclude>org.glassfish:javax.el</exclude>
<exclude>javax.annotation:javax.annotation-api</exclude>
<exclude>org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec</exclude>
<exclude>javax.enterprise:cdi-api</exclude>
<exclude>javax.persistence:javax.persistence-api</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
Expand Down

0 comments on commit fdfa7ce

Please sign in to comment.