KAFKA-18804 Remove slf4j warning when using tool script (#18918)

When running the tools from source code, multiple SLF4J bindings are encountered. This is because both the tool and core modules' dependent libraries contain Log4j2 JARs. To eliminate these warnings, this PR removes the Log4j2 JARs from core's dependent libraries.

Reviewers: Ken Huang <s7133700@gmail.com>, TengYao Chi <kitingiao@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Jhen-Yung Hsu 2025-03-05 17:29:00 +08:00 committed by GitHub
parent 0b6a42d437
commit c3a9b0fc84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1075,7 +1075,6 @@ project(':core') {
from (configurations.runtimeClasspath) {
exclude('kafka-clients*')
}
from (configurations.releaseOnly)
into "${layout.buildDirectory.get().asFile.path}/dependant-libs-${versions.scala}"
duplicatesStrategy 'exclude'
}
@ -1242,6 +1241,7 @@ project(':core') {
from (configurations.testRuntimeClasspath) {
include('*.jar')
}
from (configurations.releaseOnly)
into "${layout.buildDirectory.get().asFile.path}/dependant-testlibs"
//By default gradle does not handle test dependencies between the sub-projects
//This line is to include clients project test jar to dependant-testlibs