Skip to content

Commit f2d008d

Browse files
[NO-JIRA] Replace javax.activation with jakarta.activation
1 parent b239645 commit f2d008d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

pom.xml

+18
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,17 @@
260260
<groupId>com.google.code.findbugs</groupId>
261261
<artifactId>jsr305</artifactId>
262262
</exclusion>
263+
<exclusion>
264+
<groupId>com.sun.activation</groupId>
265+
<artifactId>javax.activation</artifactId>
266+
</exclusion>
263267
</exclusions>
264268
</dependency>
269+
<dependency>
270+
<groupId>jakarta.activation</groupId>
271+
<artifactId>jakarta.activation-api</artifactId>
272+
<version>1.2.2</version>
273+
</dependency>
265274
</dependencies>
266275

267276
<repositories>
@@ -414,6 +423,15 @@
414423
</goals>
415424
<configuration>
416425
<rules>
426+
<bannedDependencies>
427+
<!-- the activation framework was renamed to jarkata activation framework -->
428+
<excludes>
429+
<exclude>javax.activation:javax.actication-api</exclude>
430+
<exclude>com.sun.activation:javax.activation</exclude>
431+
<exclude>javax.activation:activation</exclude>
432+
</excludes>
433+
<message>use jakarta.activation:jakarta.activation-api or com.sun.activation:jakarta.activation instead of javax.activation</message>
434+
</bannedDependencies>
417435
<requireProperty>
418436
<property>gitRepositoryName</property>
419437
<message>You must set name of Git repository in your pom</message>

0 commit comments

Comments
 (0)