Skip to content

Commit 30fbe3e

Browse files
committed
Remove explict logging dependencies
1 parent 827b8a4 commit 30fbe3e

File tree

2 files changed

+29
-15
lines changed

2 files changed

+29
-15
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
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+
## 0.2.0 Bugfix Release
6+
- Use appropriate SLF4J log interface, remove explicit logging dependencies.
7+
58
## 0.1.1 Bugfix Release
69
- Request Parameters/Body now uses UTF-8 Charset encoding
710
- NoBodyContent now properly sends no request body.

pom.xml

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.sourcelab.http</groupId>
88
<artifactId>http-client-wrapper</artifactId>
9-
<version>0.1.1</version>
9+
<version>0.2.0</version>
1010
<packaging>jar</packaging>
1111

1212
<!-- Require Maven 3.3.9 -->
@@ -56,6 +56,7 @@
5656

5757
<!-- Log4J Version -->
5858
<log4j2.version>2.12.1</log4j2.version>
59+
<slf4j.version>1.7.29</slf4j.version>
5960

6061
<!-- test toggling -->
6162
<skipTests>false</skipTests>
@@ -75,21 +76,11 @@
7576
<version>${http-components.version}</version>
7677
</dependency>
7778

78-
<!-- Logging -->
79+
<!-- Logging Interface -->
7980
<dependency>
80-
<groupId>org.apache.logging.log4j</groupId>
81-
<artifactId>log4j-api</artifactId>
82-
<version>${log4j2.version}</version>
83-
</dependency>
84-
<dependency>
85-
<groupId>org.apache.logging.log4j</groupId>
86-
<artifactId>log4j-core</artifactId>
87-
<version>${log4j2.version}</version>
88-
</dependency>
89-
<dependency>
90-
<groupId>org.apache.logging.log4j</groupId>
91-
<artifactId>log4j-slf4j-impl</artifactId>
92-
<version>${log4j2.version}</version>
81+
<groupId>org.slf4j</groupId>
82+
<artifactId>slf4j-api</artifactId>
83+
<version>${slf4j.version}</version>
9384
</dependency>
9485

9586
<!-- Testing Tools -->
@@ -129,6 +120,26 @@
129120
<version>9.4.20.v20190813</version>
130121
<scope>test</scope>
131122
</dependency>
123+
124+
<!-- Logging in tests -->
125+
<dependency>
126+
<groupId>org.apache.logging.log4j</groupId>
127+
<artifactId>log4j-api</artifactId>
128+
<version>${log4j2.version}</version>
129+
<scope>test</scope>
130+
</dependency>
131+
<dependency>
132+
<groupId>org.apache.logging.log4j</groupId>
133+
<artifactId>log4j-core</artifactId>
134+
<version>${log4j2.version}</version>
135+
<scope>test</scope>
136+
</dependency>
137+
<dependency>
138+
<groupId>org.apache.logging.log4j</groupId>
139+
<artifactId>log4j-slf4j-impl</artifactId>
140+
<version>${log4j2.version}</version>
141+
<scope>test</scope>
142+
</dependency>
132143
</dependencies>
133144

134145
<build>

0 commit comments

Comments
 (0)