Skip to content

Commit fdfa7ce

Browse files
committed
HV-1725 Explicitly ban javax dependencies
1 parent 77c2a79 commit fdfa7ce

File tree

5 files changed

+90
-0
lines changed

5 files changed

+90
-0
lines changed

cdi/pom.xml

+22
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,28 @@
9090
<groupId>org.jboss.weld</groupId>
9191
<artifactId>weld-core-impl</artifactId>
9292
<scope>test</scope>
93+
<exclusions>
94+
<exclusion>
95+
<groupId>javax.enterprise</groupId>
96+
<artifactId>cdi-api</artifactId>
97+
</exclusion>
98+
<exclusion>
99+
<groupId>org.jboss.spec.javax.el</groupId>
100+
<artifactId>jboss-el-api_3.0_spec</artifactId>
101+
</exclusion>
102+
<exclusion>
103+
<groupId>org.jboss.spec.javax.interceptor</groupId>
104+
<artifactId>
105+
jboss-interceptors-api_1.2_spec
106+
</artifactId>
107+
</exclusion>
108+
<exclusion>
109+
<groupId>org.jboss.spec.javax.annotation</groupId>
110+
<artifactId>
111+
jboss-annotations-api_1.3_spec
112+
</artifactId>
113+
</exclusion>
114+
</exclusions>
93115
</dependency>
94116
<dependency>
95117
<groupId>org.jboss.shrinkwrap.resolver</groupId>

engine/pom.xml

+12
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,18 @@
146146
<groupId>org.javamoney</groupId>
147147
<artifactId>moneta</artifactId>
148148
<scope>test</scope>
149+
<exclusions>
150+
<exclusion>
151+
<groupId>javax.annotation</groupId>
152+
<artifactId>javax.annotation-api</artifactId>
153+
</exclusion>
154+
</exclusions>
155+
</dependency>
156+
<!-- For Moneta -->
157+
<dependency>
158+
<groupId>jakarta.annotation</groupId>
159+
<artifactId>jakarta.annotation-api</artifactId>
160+
<scope>test</scope>
149161
</dependency>
150162
<dependency>
151163
<groupId>com.fasterxml.jackson.core</groupId>

integration/pom.xml

+34
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,18 @@
7676
<groupId>org.javamoney</groupId>
7777
<artifactId>moneta</artifactId>
7878
<scope>test</scope>
79+
<exclusions>
80+
<exclusion>
81+
<groupId>javax.annotation</groupId>
82+
<artifactId>javax.annotation-api</artifactId>
83+
</exclusion>
84+
</exclusions>
85+
</dependency>
86+
<!-- For Moneta -->
87+
<dependency>
88+
<groupId>jakarta.annotation</groupId>
89+
<artifactId>jakarta.annotation-api</artifactId>
90+
<scope>test</scope>
7991
</dependency>
8092
<dependency>
8193
<groupId>org.jboss.arquillian.testng</groupId>
@@ -91,6 +103,28 @@
91103
<groupId>org.jboss.weld</groupId>
92104
<artifactId>weld-core-impl</artifactId>
93105
<scope>test</scope>
106+
<exclusions>
107+
<exclusion>
108+
<groupId>org.jboss.spec.javax.interceptor</groupId>
109+
<artifactId>
110+
jboss-interceptors-api_1.2_spec
111+
</artifactId>
112+
</exclusion>
113+
<exclusion>
114+
<groupId>javax.enterprise</groupId>
115+
<artifactId>cdi-api</artifactId>
116+
</exclusion>
117+
</exclusions>
118+
</dependency>
119+
<dependency>
120+
<groupId>jakarta.interceptor</groupId>
121+
<artifactId>jakarta.interceptor-api</artifactId>
122+
<scope>test</scope>
123+
</dependency>
124+
<dependency>
125+
<groupId>jakarta.enterprise</groupId>
126+
<artifactId>jakarta.enterprise.cdi-api</artifactId>
127+
<scope>test</scope>
94128
</dependency>
95129
<dependency>
96130
<groupId>jakarta.persistence</groupId>

osgi/integrationtest/pom.xml

+12
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,18 @@
6464
<groupId>org.javamoney</groupId>
6565
<artifactId>moneta</artifactId>
6666
<scope>test</scope>
67+
<exclusions>
68+
<exclusion>
69+
<groupId>javax.annotation</groupId>
70+
<artifactId>javax.annotation-api</artifactId>
71+
</exclusion>
72+
</exclusions>
73+
</dependency>
74+
<!-- For Moneta -->
75+
<dependency>
76+
<groupId>jakarta.annotation</groupId>
77+
<artifactId>jakarta.annotation-api</artifactId>
78+
<scope>test</scope>
6779
</dependency>
6880

6981
<!-- script engines -->

pom.xml

+10
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,16 @@
536536
<requireMavenVersion>
537537
<version>${maven.min.version}</version>
538538
</requireMavenVersion>
539+
<bannedDependencies>
540+
<excludes>
541+
<exclude>javax.validation:validation-api</exclude>
542+
<exclude>org.glassfish:javax.el</exclude>
543+
<exclude>javax.annotation:javax.annotation-api</exclude>
544+
<exclude>org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec</exclude>
545+
<exclude>javax.enterprise:cdi-api</exclude>
546+
<exclude>javax.persistence:javax.persistence-api</exclude>
547+
</excludes>
548+
</bannedDependencies>
539549
</rules>
540550
</configuration>
541551
</execution>

0 commit comments

Comments
 (0)