Skip to content

Commit

Permalink
Prevent multiple versions of BouncyCastle on the classpath
Browse files Browse the repository at this point in the history
  • Loading branch information
ibauersachs authored and damencho committed May 17, 2022
1 parent b347777 commit f2ae7ae
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-translate</artifactId>
<version>2.1.13</version>
<exclusions>
<exclusion>
<!-- as BC changed the artifact id, we can't rely on Maven to resolve version conflicts -->
<groupId>org.bouncycastle</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.datadoghq</groupId>
Expand Down Expand Up @@ -423,6 +430,29 @@
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>default-cli</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<bannedDependencies>
<excludes>
<exclude>org.bouncycastle:bc*-jdk15on*</exclude>
<exclude>org.bouncycastle:bc*-jdk15to18</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
Expand Down

0 comments on commit f2ae7ae

Please sign in to comment.