Skip to content

Commit fee9bb0

Browse files
authored
HBASE-26803 Ban reload4j and logback dependencies (#4167)
Signed-off-by: Sean Busbey <[email protected]>
1 parent 19ad3d6 commit fee9bb0

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

pom.xml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,36 +1232,22 @@
12321232
</configuration>
12331233
</execution>
12341234
<execution>
1235-
<id>banned-log4j</id>
1236-
<goals>
1237-
<goal>enforce</goal>
1238-
</goals>
1239-
<configuration>
1240-
<rules>
1241-
<bannedDependencies>
1242-
<excludes>
1243-
<exclude>log4j:log4j</exclude>
1244-
</excludes>
1245-
<message>
1246-
We do not allow log4j dependencies as now we use log4j2
1247-
</message>
1248-
</bannedDependencies>
1249-
</rules>
1250-
</configuration>
1251-
</execution>
1252-
<execution>
1253-
<id>banned-slf4j-log4j12</id>
1235+
<id>banned-other-logging-framework</id>
12541236
<goals>
12551237
<goal>enforce</goal>
12561238
</goals>
12571239
<configuration>
12581240
<rules>
12591241
<bannedDependencies>
12601242
<excludes>
1243+
<exclude>log4j:*</exclude>
12611244
<exclude>org.slf4j:slf4j-log4j12</exclude>
1245+
<exclude>ch.qos.reload4j:*</exclude>
1246+
<exclude>org.slf4j:slf4j-reload4j</exclude>
1247+
<exclude>ch.qos.logback:*</exclude>
12621248
</excludes>
12631249
<message>
1264-
We do not allow slf4j-log4j12 dependency as now we use log4j-slf4j-impl
1250+
We do not allow other logging frameworks as now we use log4j2
12651251
</message>
12661252
</bannedDependencies>
12671253
</rules>

0 commit comments

Comments
 (0)