diff --git a/logback-classic/src/test/java/ch/qos/logback/classic/util/EnvUtilTest.java b/logback-classic/src/test/java/ch/qos/logback/classic/util/EnvUtilTest.java
index 262ada0bbf..8b1d59dd00 100644
--- a/logback-classic/src/test/java/ch/qos/logback/classic/util/EnvUtilTest.java
+++ b/logback-classic/src/test/java/ch/qos/logback/classic/util/EnvUtilTest.java
@@ -8,6 +8,11 @@
import static org.junit.jupiter.api.Assertions.assertTrue;
public class EnvUtilTest {
+ // Beware: ----------------------------------------
+ // Beware: needs to be updated upon version change
+ // Beware: ----------------------------------------
+ static final String EXPECTED_VERSION = "1.5";
+
@BeforeEach
public void setUp() throws Exception {
@@ -21,7 +26,7 @@ public void setUp() throws Exception {
public void versionTest() {
String versionStr = EnvUtil.logbackVersion();
assertNotNull(versionStr);
- assertTrue(versionStr.startsWith("1.4"));
+ assertTrue(versionStr.startsWith(EXPECTED_VERSION));
}
diff --git a/logback-examples/pom.xml b/logback-examples/pom.xml
index fa13af1323..8c31158416 100755
--- a/logback-examples/pom.xml
+++ b/logback-examples/pom.xml
@@ -25,10 +25,6 @@
ch.qos.logback
logback-classic
-
- ch.qos.logback
- logback-access
-
org.slf4j
slf4j-ext