Skip to content

Commit 9008db9

Browse files
authored
fix(logging): bump logback to get newer version than 1.7.x of slf4j (#394)
* 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
1 parent 9974521 commit 9008db9

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
33

44
val assertjVersion = "3.23.1"
55
val kotlinLoggingVersion = "3.0.4"
6-
val logbackVersion = "1.2.11"
6+
val logbackVersion = "1.4.5"
77
val nimbusSdkVersion = "10.4"
88
val mockWebServerVersion = "4.10.0"
99
val jacksonVersion = "2.14.1"

docker-compose.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: "3.1"
2+
3+
services:
4+
mock-oauth2-server:
5+
image: mock-oauth2-server:latest
6+
ports:
7+
- "8080:8080"
8+
volumes:
9+
- ./src/test/resources/config.json:/app/config.json
10+
environment:
11+
LOG_LEVEL: "debug"
12+
SERVER_PORT: 8080
13+
JSON_CONFIG_PATH: /app/config.json
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
org.springframework.boot.logging.LoggingSystemFactory=\
2+
org.springframework.boot.logging.java.JavaLoggingSystem.Factory

0 commit comments

Comments
 (0)