Skip to content

Commit

Permalink
Use enforcer for log4j:log4j dependency exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
Aggarwal-Raghav committed Apr 26, 2024
1 parent 6dbebd7 commit 130bc05
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
18 changes: 18 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1617,6 +1617,24 @@
<fail>true</fail>
</configuration>
</execution>
<execution>
<id>enforce-banned-transitive-dependencies-logging</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<bannedDependencies>
<excludes>
<exclude>log4j:log4j</exclude>
</excludes>
<searchTransitive>true</searchTransitive>
<message>A banned transitive logging dependency was found!</message>
</bannedDependencies>
</rules>
<fail>true</fail>
</configuration>
</execution>
<execution>
<id>check-banned-imports</id>
<phase>initialize</phase>
Expand Down
4 changes: 2 additions & 2 deletions standalone-metastore/metastore-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -720,12 +720,12 @@
<groupId>org.datanucleus</groupId>
<artifactId>datanucleus-maven-plugin</artifactId>
<version>5.2.1</version>
<!-- The plexus-contianer-default can be removed once we move to datanucleus-maven-plugin version 6.0.0-release-->
<!-- The plexus-contianer-default can be removed once we move to datanucleus-maven-plugin version >= 6.0.0-release-->
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-container-default</artifactId>
<version>1.5.6</version>
<version>${plexus.version}</version>
</dependency>
</dependencies>
<configuration>
Expand Down
2 changes: 2 additions & 0 deletions standalone-metastore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@
<mockito-core.version>3.4.4</mockito-core.version>
<orc.version>1.8.5</orc.version>
<protobuf.version>3.24.4</protobuf.version>
<!-- TODO: Remove plexus property from this pom.xml once we upgrade datanucleus-maven-plugin version >= 6.0.0-release-->
<plexus.version>1.5.6</plexus.version>
<io.grpc.version>1.51.0</io.grpc.version>
<sqlline.version>1.9.0</sqlline.version>
<jline.version>2.14.6</jline.version>
Expand Down

0 comments on commit 130bc05

Please sign in to comment.