mirror of https://github.com/apache/kafka.git
KAFKA-17121 junit-platform.properties files in published artifacts pollute the test classpath of consumers (#16624)
Reviewers: Andy Wilkinson <ankinson@mastodon.org.uk>, Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
4de83d38c9
commit
bc031c0410
|
@ -588,6 +588,10 @@ subprojects {
|
|||
from "$rootDir/LICENSE"
|
||||
from "$rootDir/NOTICE"
|
||||
from sourceSets.test.output
|
||||
// The junit-platform.properties file is used for configuring and customizing the behavior of the JUnit platform.
|
||||
// It should only apply to Kafka's own JUnit tests, and should not exist in the test JAR.
|
||||
// If we include it in the test JAR, it could lead to conflicts with user configurations.
|
||||
exclude 'junit-platform.properties'
|
||||
}
|
||||
|
||||
task testSrcJar(type: Jar, dependsOn: testJar) {
|
||||
|
|
Loading…
Reference in New Issue