Skip to content

Commit 42c7f8d

Browse files
Upgrade slf4j and logback (#541)
* Upgrade slf4j and logback * Upgrade slf4j from 1.7.36 to 2.0.17 * Upgrade logback from 1.2.13 to 1.5.23 * Exclude slf4j-simple 1.7.x from pmd and checkstyle Signed-off-by: Holger Friedrich <mail@holger-friedrich.de> * address review comment Signed-off-by: Holger Friedrich <mail@holger-friedrich.de> --------- Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
1 parent ab07962 commit 42c7f8d

File tree

3 files changed

+26
-8
lines changed

3 files changed

+26
-8
lines changed

custom-checks/checkstyle/pom.xml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,36 @@
1717
<name>Checkstyle Custom Checks</name>
1818

1919
<dependencies>
20+
<dependency>
21+
<groupId>org.slf4j</groupId>
22+
<artifactId>slf4j-api</artifactId>
23+
<version>${slf4j.version}</version>
24+
<scope>provided</scope>
25+
</dependency>
2026
<dependency>
2127
<groupId>com.puppycrawl.tools</groupId>
2228
<artifactId>checkstyle</artifactId>
2329
<version>${checkstyle.version}</version>
2430
<scope>provided</scope>
31+
<exclusions>
32+
<exclusion>
33+
<groupId>org.slf4j</groupId>
34+
<artifactId>slf4j-simple</artifactId>
35+
</exclusion>
36+
</exclusions>
2537
</dependency>
2638
<dependency>
2739
<groupId>com.puppycrawl.tools</groupId>
2840
<artifactId>checkstyle</artifactId>
2941
<version>${checkstyle.version}</version>
3042
<type>test-jar</type>
3143
<scope>provided</scope>
44+
<exclusions>
45+
<exclusion>
46+
<groupId>org.slf4j</groupId>
47+
<artifactId>slf4j-simple</artifactId>
48+
</exclusion>
49+
</exclusions>
3250
</dependency>
3351
<dependency>
3452
<groupId>org.eclipse.jetty</groupId>
@@ -63,12 +81,6 @@
6381
<artifactId>org.eclipse.jdt.annotation</artifactId>
6482
<version>${jdt-annotations.version}</version>
6583
</dependency>
66-
<dependency>
67-
<groupId>org.slf4j</groupId>
68-
<artifactId>slf4j-api</artifactId>
69-
<version>${slf4j.version}</version>
70-
<scope>provided</scope>
71-
</dependency>
7284
<dependency>
7385
<groupId>ch.qos.logback</groupId>
7486
<artifactId>logback-classic</artifactId>

custom-checks/pmd/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434
<artifactId>pmd-test</artifactId>
3535
<version>${pmd.version}</version>
3636
<scope>test</scope>
37+
<exclusions>
38+
<exclusion>
39+
<groupId>org.slf4j</groupId>
40+
<artifactId>slf4j-simple</artifactId>
41+
</exclusion>
42+
</exclusions>
3743
</dependency>
3844
</dependencies>
3945

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@
8484
<!-- Eclipse Java formatter version 4.26+ does not check test files -->
8585
<spotless.eclipse.version>4.25</spotless.eclipse.version>
8686
<spotless.eclipse.wtp.version>4.21.0</spotless.eclipse.wtp.version>
87-
<slf4j.version>1.7.36</slf4j.version>
88-
<logback.version>1.2.13</logback.version>
87+
<slf4j.version>2.0.17</slf4j.version>
88+
<logback.version>1.5.23</logback.version>
8989
<eea.version>2.4.0</eea.version>
9090
<m2e.jdt.annotationpath>target/dependency</m2e.jdt.annotationpath>
9191
<dom4j.version>2.2.0</dom4j.version>

0 commit comments

Comments
 (0)