Skip to content

Commit

Permalink
Fix slf4j provider configuration (unclebob#1520)
Browse files Browse the repository at this point in the history
Ensure slf4j logging is not lost but is sent to 'java.util.logging' (using 'slf4j-jdk14'), an explicit other provider can be used via the system property slf4j.provider, see SLF4J Manual.

Fixes unclebob#1520
  • Loading branch information
fhoeben committed Aug 16, 2024
1 parent 576bf78 commit 4af9e07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions FitNesseRoot/FitNesse/ReleaseNotes/content.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
!2 Pending Changes
* Fix SLF4J logging ([[1522][https://github.com/unclebob/fitnesse/pull/1522]])

!2 20240707
* Allow usage of JDK > 18 ([[1513][https://github.com/unclebob/fitnesse/pull/1513]]).
Expand Down
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 4af9e07

Please sign in to comment.