Skip to content

Commit

Permalink
Allow default slf4j provider to be found via service locator (unclebo…
Browse files Browse the repository at this point in the history
  • Loading branch information
fhoeben committed Aug 16, 2024
1 parent 576bf78 commit 282c305
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ sourceSets {
main {
java.srcDir 'src'
resources.srcDir 'src'
output.resourcesDir java.classesDirectory
output.resourcesDir java.classesDirectory
}
test {
java.srcDir 'test'
Expand Down Expand Up @@ -189,7 +189,10 @@ task standaloneJar(type: Jar) {
from {
configurations.runtimeClasspath.collect { zipTree(it) }
} {
exclude 'META-INF/**'
exclude { FileTreeElement details ->
details.relativePath.pathString.startsWith('META-INF/') &&
!details.relativePath.pathString.equals('META-INF/services/org.slf4j.spi.SLF4JServiceProvider')
}
}
from jar.outputs.files.collect {
zipTree(it)
Expand Down

0 comments on commit 282c305

Please sign in to comment.