Skip to content

Commit

Permalink
Use io.jenkins.plugins:commons-lang3-api (#312)
Browse files Browse the repository at this point in the history
* Ban `org.apache.commons:commons-lang3`

---------

Co-authored-by: Ullrich Hafner <ullrich.hafner@gmail.com>
  • Loading branch information
viceice and uhafner committed Apr 28, 2023
1 parent 33c6265 commit 44da409
Showing 1 changed file with 37 additions and 3 deletions.
40 changes: 37 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,11 @@ THE SOFTWARE.
<groupId>org.eclipse.sisu</groupId>
<artifactId>org.eclipse.sisu.inject</artifactId>
</exclusion>
<!-- commons-lang3 is provided by commons-lang3-api plugin -->
<exclusion>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down Expand Up @@ -443,6 +448,11 @@ THE SOFTWARE.
<groupId>org.sonatype.plexus</groupId>
<artifactId>plexus-cipher</artifactId>
</exclusion>
<!-- commons-lang3 is provided by commons-lang3-api plugin -->
<exclusion>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</exclusion>
</exclusions>
</dependency>

Expand All @@ -467,6 +477,13 @@ THE SOFTWARE.
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-impl</artifactId>
<version>${resolverVersion}</version>
<exclusions>
<!-- commons-lang3 is provided by commons-lang3-api plugin -->
<exclusion>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
Expand Down Expand Up @@ -686,9 +703,9 @@ THE SOFTWARE.
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
<groupId>io.jenkins.plugins</groupId>
<artifactId>commons-lang3-api</artifactId>
<version>3.12.0-36.vd97de6465d5b_</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -878,6 +895,23 @@ THE SOFTWARE.
<fail>true</fail>
</configuration>
</execution>
<execution>
<id>enforce-banned-dependencies</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<bannedDependencies>
<excludes>
<exclude>org.apache.commons:commons-lang3</exclude>
</excludes>
<searchTransitive>false</searchTransitive>
</bannedDependencies>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>

<!-- Consider adding to Jenkins plugin parent POM? -->
Expand Down

0 comments on commit 44da409

Please sign in to comment.