Don't bundle slf4j-api inside testing-commons (#6520)

This commit is contained in:
Lauri Tulmin 2022-08-30 00:04:26 +03:00 committed by GitHub
parent 892fb8a38e
commit c04a6a3471
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -47,13 +47,13 @@ dependencies {
api("org.awaitility:awaitility")
api("com.google.guava:guava")
api("org.mockito:mockito-core")
api("org.slf4j:slf4j-api")
compileOnly(project(":testing:armeria-shaded-for-testing", configuration = "shadow"))
implementation("io.opentelemetry.proto:opentelemetry-proto")
implementation("net.bytebuddy:byte-buddy")
implementation("org.slf4j:slf4j-api")
implementation("ch.qos.logback:logback-classic")
implementation("org.slf4j:log4j-over-slf4j")
implementation("org.slf4j:jcl-over-slf4j")

View File

@ -10,6 +10,10 @@ dependencies {
tasks {
shadowJar {
dependencies {
exclude(dependency("org.slf4j:slf4j-api"))
}
// Ensures tests are not affected by Armeria instrumentation
relocate("com.linecorp.armeria", "io.opentelemetry.testing.internal.armeria")
relocate("com.fasterxml.jackson", "io.opentelemetry.testing.internal.jackson")