mirror of https://github.com/apache/kafka.git
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:
parent
0b6a42d437
commit
c3a9b0fc84
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue