Skip to content
Permalink
Browse files
HBASE-26803 Ban reload4j and logback dependencies (#4167)
Signed-off-by: Sean Busbey <busbey@apache.org>
  • Loading branch information
Apache9 committed Mar 7, 2022
1 parent 19ad3d6 commit fee9bb0c2f3952b7d36ca187c28ca3375ad2a5b6
Showing 1 changed file with 6 additions and 20 deletions.
26 pom.xml
@@ -1232,36 +1232,22 @@
</configuration>
</execution>
<execution>
<id>banned-log4j</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<bannedDependencies>
<excludes>
<exclude>log4j:log4j</exclude>
</excludes>
<message>
We do not allow log4j dependencies as now we use log4j2
</message>
</bannedDependencies>
</rules>
</configuration>
</execution>
<execution>
<id>banned-slf4j-log4j12</id>
<id>banned-other-logging-framework</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<bannedDependencies>
<excludes>
<exclude>log4j:*</exclude>
<exclude>org.slf4j:slf4j-log4j12</exclude>
<exclude>ch.qos.reload4j:*</exclude>
<exclude>org.slf4j:slf4j-reload4j</exclude>
<exclude>ch.qos.logback:*</exclude>
</excludes>
<message>
We do not allow slf4j-log4j12 dependency as now we use log4j-slf4j-impl
We do not allow other logging frameworks as now we use log4j2
</message>
</bannedDependencies>
</rules>

0 comments on commit fee9bb0

Please sign in to comment.