Skip to content

Commit e303f2f

Browse files
author
Stephen Powis
committed
Update dependencies, remove log4j2 dependency, instead rely on slf4 interface directly
1 parent f8d950a commit e303f2f

File tree

2 files changed

+57
-22
lines changed

2 files changed

+57
-22
lines changed

CHANGELOG.md

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,38 @@
22
The format is based on [Keep a Changelog](http://keepachangelog.com/)
33
and this project adheres to [Semantic Versioning](http://semver.org/).
44

5-
## 2.1.1 (UNRELEASED)
5+
## 3.0.0 (UNRELEASED)
6+
7+
#### Possible Breaking Dependency Change
8+
9+
- Removed `org.apache.logging.log4j` dependency, instead relying on the org.slf4j logging interface/facade dependency explicitly.
10+
- If your project was depending on this transitive dependency you may need to add it to your own project:
11+
12+
```xml
13+
<dependency>
14+
<groupId>org.apache.logging.log4j</groupId>
15+
<artifactId>log4j-api</artifactId>
16+
<version>2.12.1</version>
17+
</dependency>
18+
<dependency>
19+
<groupId>org.apache.logging.log4j</groupId>
20+
<artifactId>log4j-core</artifactId>
21+
<version>2.12.1</version>
22+
</dependency>
23+
<dependency>
24+
<groupId>org.apache.logging.log4j</groupId>
25+
<artifactId>log4j-slf4j-impl</artifactId>
26+
<version>2.12.1</version>
27+
</dependency>
28+
```
629

730
#### Internal Dependency Updates
831
- Checkstyle plugin from 8.19 -> 8.24
32+
- com.fasterxml.jackson.core from 2.9.9 -> 2.10.2
933
- org.apache.logging.log4j from 2.11.2 -> 2.12.1
10-
- org.apache.httpcomponents from 4.5.8 -> 4.5.10
11-
- com.google.guava:guava from 27.1-jre -> 28.1-jre
12-
- org.eclipse.jetty:jetty-server (test dependency) from 9.4.17.v20190418 -> 9.4.20.v20190813
34+
- org.apache.httpcomponents from 4.5.8 -> 4.5.11
35+
- com.google.guava:guava from 27.1-jre -> 28.2-jre
36+
- org.eclipse.jetty:jetty-server (test dependency) from 9.4.17.v20190418 -> 9.4.27.v20200227
1337
- org.mockito:mockito-core (test dependency) from 2.27.0 -> 2.28.2
1438

1539
## 2.1.0 (06/26/2019)

pom.xml

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@
4747
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4848

4949
<!-- guava version -->
50-
<guava.version>28.1-jre</guava.version>
50+
<guava.version>28.2-jre</guava.version>
5151

5252
<!-- Http Components version -->
53-
<http-components.version>4.5.10</http-components.version>
53+
<http-components.version>4.5.11</http-components.version>
5454

5555
<!-- Jackson version -->
56-
<jackson.version>2.9.9</jackson.version>
56+
<jackson.version>2.10.2</jackson.version>
5757

5858
<!-- Define which version of junit you'll be running -->
5959
<junit.version>4.12</junit.version>
@@ -65,6 +65,7 @@
6565

6666
<!-- Log4J Version -->
6767
<log4j2.version>2.12.1</log4j2.version>
68+
<slf4j.version>1.7.30</slf4j.version>
6869

6970
<!-- test toggling -->
7071
<skipTests>false</skipTests>
@@ -103,21 +104,11 @@
103104
<version>${jackson.version}</version>
104105
</dependency>
105106

106-
<!-- Logging -->
107+
<!-- Logging Interface -->
107108
<dependency>
108-
<groupId>org.apache.logging.log4j</groupId>
109-
<artifactId>log4j-api</artifactId>
110-
<version>${log4j2.version}</version>
111-
</dependency>
112-
<dependency>
113-
<groupId>org.apache.logging.log4j</groupId>
114-
<artifactId>log4j-core</artifactId>
115-
<version>${log4j2.version}</version>
116-
</dependency>
117-
<dependency>
118-
<groupId>org.apache.logging.log4j</groupId>
119-
<artifactId>log4j-slf4j-impl</artifactId>
120-
<version>${log4j2.version}</version>
109+
<groupId>org.slf4j</groupId>
110+
<artifactId>slf4j-api</artifactId>
111+
<version>${slf4j.version}</version>
121112
</dependency>
122113

123114
<!-- Testing Tools -->
@@ -165,7 +156,27 @@
165156
<dependency>
166157
<groupId>org.eclipse.jetty</groupId>
167158
<artifactId>jetty-server</artifactId>
168-
<version>9.4.20.v20190813</version>
159+
<version>9.4.27.v20200227</version>
160+
<scope>test</scope>
161+
</dependency>
162+
163+
<!-- Logging in tests -->
164+
<dependency>
165+
<groupId>org.apache.logging.log4j</groupId>
166+
<artifactId>log4j-api</artifactId>
167+
<version>${log4j2.version}</version>
168+
<scope>test</scope>
169+
</dependency>
170+
<dependency>
171+
<groupId>org.apache.logging.log4j</groupId>
172+
<artifactId>log4j-core</artifactId>
173+
<version>${log4j2.version}</version>
174+
<scope>test</scope>
175+
</dependency>
176+
<dependency>
177+
<groupId>org.apache.logging.log4j</groupId>
178+
<artifactId>log4j-slf4j-impl</artifactId>
179+
<version>${log4j2.version}</version>
169180
<scope>test</scope>
170181
</dependency>
171182
</dependencies>

0 commit comments

Comments
 (0)