Skip to content

Commit

Permalink
build: Remove slf4j-simple from testRuntimeClasspath (#59)
Browse files Browse the repository at this point in the history
Because:
```
LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.simple.SimpleLoggerFactory loaded from file:/home/mattias/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-simple/2.0.16/56d3d8e59293543780ad35af4ee4a5d9c111a588/slf4j-simple-2.0.16.jar). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml: org.slf4j.simple.SimpleLoggerFactory
```
  • Loading branch information
matrei authored Oct 25, 2024
1 parent 97b67b8 commit 4885f06
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ dependencies {
implementation libs.spring.beans
implementation libs.springboot.autoconfigure

testRuntimeOnly libs.slf4j.simple

testImplementation libs.servlet.api
testImplementation libs.grails.testingSupport.core
testImplementation libs.spock.core
Expand Down
1 change: 0 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ servlet-api = { module = 'jakarta.servlet:jakarta.servlet-api' }
javamail-api = { module = 'jakarta.mail:jakarta.mail-api' }
javamail-impl = { module = 'org.eclipse.angus:jakarta.mail' }
slf4j-nop = { module = 'org.slf4j:slf4j-nop' }
slf4j-simple = { module = 'org.slf4j:slf4j-simple' }
spock-core = { module = 'org.spockframework:spock-core' }
spring-beans = { module = 'org.springframework:spring-beans' }
spring-context = { module = 'org.springframework:spring-context' }
Expand Down

0 comments on commit 4885f06

Please sign in to comment.