Skip to content

Commit dac56fd

Browse files
author
eugenp
committed
cleanup work
1 parent f58149a commit dac56fd

2 files changed

Lines changed: 28 additions & 3 deletions

File tree

spring-security-rest-custom/src/test/java/org/baeldung/live/HttpLiveServiceTemp.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.apache.http.HttpHeaders;
1515
import org.apache.http.HttpResponse;
1616
import org.apache.http.client.methods.HttpGet;
17+
import org.apache.http.impl.client.CloseableHttpClient;
1718
import org.apache.http.impl.client.DefaultHttpClient;
1819
import org.apache.http.params.BasicHttpParams;
1920
import org.apache.http.params.HttpParams;
@@ -26,7 +27,7 @@
2627

2728
public class HttpLiveServiceTemp {
2829

29-
private DefaultHttpClient client;
30+
private CloseableHttpClient client;
3031

3132
// fixtures
3233

spring-security-rest-full/pom.xml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,34 @@
130130
<dependency>
131131
<groupId>com.google.guava</groupId>
132132
<artifactId>guava</artifactId>
133-
<version>14.0.1</version>
133+
<version>${guava.version}</version>
134134
</dependency>
135+
136+
<!-- logging -->
135137

138+
<dependency>
139+
<groupId>org.slf4j</groupId>
140+
<artifactId>slf4j-api</artifactId>
141+
<version>${org.slf4j.version}</version>
142+
</dependency>
143+
<dependency>
144+
<groupId>ch.qos.logback</groupId>
145+
<artifactId>logback-classic</artifactId>
146+
<version>${logback.version}</version>
147+
<!-- <scope>runtime</scope> -->
148+
</dependency>
149+
<dependency>
150+
<groupId>org.slf4j</groupId>
151+
<artifactId>jcl-over-slf4j</artifactId>
152+
<version>${org.slf4j.version}</version>
153+
<!-- <scope>runtime</scope> --> <!-- some spring dependencies need to compile against jcl -->
154+
</dependency>
155+
<dependency> <!-- needed to bridge to slf4j for projects that use the log4j APIs directly -->
156+
<groupId>org.slf4j</groupId>
157+
<artifactId>log4j-over-slf4j</artifactId>
158+
<version>${org.slf4j.version}</version>
159+
</dependency>
160+
136161
<!-- test scoped -->
137162

138163
<dependency>
@@ -254,7 +279,6 @@
254279
<httpclient.version>4.3.1</httpclient.version>
255280

256281
<rest-assured.version>2.1.0</rest-assured.version>
257-
<groovy.version>1.8.9</groovy.version>
258282

259283
<!-- Maven plugins -->
260284
<maven-compiler-plugin.version>3.1</maven-compiler-plugin.version>

0 commit comments

Comments
 (0)