Skip to content

Commit

Permalink
fix(logging): bump logback to get newer version than 1.7.x of slf4j
Browse files Browse the repository at this point in the history
* fixes #388 by upgrading slf4j to 2.x
* spring boot tests were failing due to Spring 2.7.x requiring slf4j 1.7.x
* added spring.factories to prevent Spring from using its LoggingSystemLogback class causing a NoClassDefFoundError on class removed from slf4j 2.x
* add sample docker-compose.yaml to easily test standalone mode
  • Loading branch information
tommytroen committed Dec 15, 2022
1 parent 9974521 commit 11b635a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask

val assertjVersion = "3.23.1"
val kotlinLoggingVersion = "3.0.4"
val logbackVersion = "1.2.11"
val logbackVersion = "1.4.5"
val nimbusSdkVersion = "10.4"
val mockWebServerVersion = "4.10.0"
val jacksonVersion = "2.14.1"
Expand Down
13 changes: 13 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: "3.1"

services:
mock-oauth2-server:
image: mock-oauth2-server:latest
ports:
- "8080:8080"
volumes:
- ./src/test/resources/config.json:/app/config.json
environment:
LOG_LEVEL: "debug"
SERVER_PORT: 8080
JSON_CONFIG_PATH: /app/config.json
2 changes: 2 additions & 0 deletions src/test/resources/META-INF/spring.factories
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
org.springframework.boot.logging.LoggingSystemFactory=\
org.springframework.boot.logging.java.JavaLoggingSystem.Factory

0 comments on commit 11b635a

Please sign in to comment.