Skip to content

Commit

Permalink
[NO-JIRA] Replace javax.activation with jakarta.activation
Browse files Browse the repository at this point in the history
  • Loading branch information
jacek-poreda-sonarsource committed Dec 4, 2024
1 parent b239645 commit f2d008d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,17 @@
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.activation</groupId>
<artifactId>javax.activation</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>jakarta.activation</groupId>
<artifactId>jakarta.activation-api</artifactId>
<version>1.2.2</version>
</dependency>
</dependencies>

<repositories>
Expand Down Expand Up @@ -414,6 +423,15 @@
</goals>
<configuration>
<rules>
<bannedDependencies>
<!-- the activation framework was renamed to jarkata activation framework -->
<excludes>
<exclude>javax.activation:javax.actication-api</exclude>
<exclude>com.sun.activation:javax.activation</exclude>
<exclude>javax.activation:activation</exclude>
</excludes>
<message>use jakarta.activation:jakarta.activation-api or com.sun.activation:jakarta.activation instead of javax.activation</message>
</bannedDependencies>
<requireProperty>
<property>gitRepositoryName</property>
<message>You must set name of Git repository in your pom</message>
Expand Down

0 comments on commit f2d008d

Please sign in to comment.