diff --git a/build.gradle b/build.gradle index 981f1f9..f988f8b 100644 --- a/build.gradle +++ b/build.gradle @@ -8,11 +8,11 @@ plugins { } group = "de.siegmar" -version = "4.0.2" +version = "5.0.0" java { toolchain { - languageVersion = JavaLanguageVersion.of(8) + languageVersion = JavaLanguageVersion.of(11) } withJavadocJar() withSourcesJar() @@ -23,7 +23,7 @@ repositories { } dependencies { - api 'ch.qos.logback:logback-classic:1.2.9' + api 'ch.qos.logback:logback-classic:1.4.11' testImplementation(platform('org.junit:junit-bom:5.7.0')) testImplementation('org.junit.jupiter:junit-jupiter') testImplementation 'com.google.guava:guava:31.0.1-jre' diff --git a/pom.xml b/pom.xml index 24a977a..f11b0a8 100644 --- a/pom.xml +++ b/pom.xml @@ -3,12 +3,12 @@ 4.0.0 de.siegmar logback-gelf - 4.0.2 + 5.0.0 ch.qos.logback logback-classic - 1.2.9 + 1.4.11 diff --git a/src/test/java/de/siegmar/logbackgelf/GelfEncoderTest.java b/src/test/java/de/siegmar/logbackgelf/GelfEncoderTest.java index dd22122..c315227 100644 --- a/src/test/java/de/siegmar/logbackgelf/GelfEncoderTest.java +++ b/src/test/java/de/siegmar/logbackgelf/GelfEncoderTest.java @@ -392,7 +392,7 @@ public void singleMarker() throws IOException { final Logger logger = lc.getLogger(LOGGER_NAME); final LoggingEvent event = simpleLoggingEvent(logger, null); - event.setMarker(MarkerFactory.getMarker("SINGLE")); + event.addMarker(MarkerFactory.getMarker("SINGLE")); final String logMsg = encodeToStr(event); @@ -413,7 +413,7 @@ public void multipleMarker() throws IOException { final LoggingEvent event = simpleLoggingEvent(logger, null); final Marker marker = MarkerFactory.getMarker("FIRST"); marker.add(MarkerFactory.getMarker("SECOND")); - event.setMarker(marker); + event.addMarker(marker); final String logMsg = encodeToStr(event);