HBASE-26803 Ban reload4j and logback dependencies (#4167)

Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
Duo Zhang 2022-03-07 09:54:20 +08:00 committed by GitHub
parent 19ad3d6654
commit fee9bb0c2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 20 deletions

26
pom.xml
View File

@ -1232,25 +1232,7 @@
</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>
@ -1258,10 +1240,14 @@
<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>