Skip to content

Commit

Permalink
Update Java libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Apr 13, 2017
1 parent d88f364 commit 15f3258
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 21 deletions.
20 changes: 10 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.9.7</version>
<version>2.9.9</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.4.193</version>
<version>1.4.194</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.40</version> <!-- Version 6 required Java 8 -->
<version>5.1.41</version> <!-- Version 6 required Java 8 -->
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.4.1212.jre7</version>
<version>42.0.0.jre7</version>
</dependency>
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
Expand All @@ -61,22 +61,22 @@
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP-java7</artifactId>
<version>2.4.11</version>
<version>2.4.11</version> <!-- Version 2.6 requires Java 8 -->
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty</artifactId>
<version>3.10.6.Final</version>
</dependency>
<dependency>
<groupId>com.ning</groupId> <!-- org.asynchttpclient starting from version 2.0 -->
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client</artifactId>
<version>1.9.40</version>
<version>2.0.31</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.22</version>
<version>1.7.25</version>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
Expand Down Expand Up @@ -131,12 +131,12 @@
<dependency>
<groupId>org.jxls</groupId>
<artifactId>jxls</artifactId>
<version>2.3.0</version>
<version>2.4.0</version>
</dependency>
<dependency>
<groupId>org.jxls</groupId>
<artifactId>jxls-poi</artifactId>
<version>1.0.11</version>
<version>1.0.12</version>
</dependency>
<dependency>
<groupId>org.apache.velocity</groupId>
Expand Down
5 changes: 3 additions & 2 deletions src/org/traccar/Context.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.ning.http.client.AsyncHttpClient;

import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Properties;

import org.apache.velocity.app.VelocityEngine;
import org.asynchttpclient.AsyncHttpClient;
import org.asynchttpclient.DefaultAsyncHttpClient;
import org.eclipse.jetty.util.URIUtil;
import org.traccar.database.AliasesManager;
import org.traccar.database.CalendarManager;
Expand Down Expand Up @@ -155,7 +156,7 @@ public static VelocityEngine getVelocityEngine() {
return velocityEngine;
}

private static final AsyncHttpClient ASYNC_HTTP_CLIENT = new AsyncHttpClient();
private static final AsyncHttpClient ASYNC_HTTP_CLIENT = new DefaultAsyncHttpClient();

public static AsyncHttpClient getAsyncHttpClient() {
return ASYNC_HTTP_CLIENT;
Expand Down
4 changes: 2 additions & 2 deletions src/org/traccar/geocoder/JsonGeocoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*/
package org.traccar.geocoder;

import com.ning.http.client.AsyncCompletionHandler;
import com.ning.http.client.Response;
import org.asynchttpclient.AsyncCompletionHandler;
import org.asynchttpclient.Response;
import org.traccar.Context;

import javax.json.Json;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*/
package org.traccar.geolocation;

import com.ning.http.client.AsyncCompletionHandler;
import com.ning.http.client.Response;
import org.asynchttpclient.AsyncCompletionHandler;
import org.asynchttpclient.Response;
import org.traccar.Context;
import org.traccar.model.CellTower;
import org.traccar.model.Network;
Expand Down
4 changes: 2 additions & 2 deletions src/org/traccar/geolocation/UniversalGeolocationProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
package org.traccar.geolocation;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.ning.http.client.AsyncCompletionHandler;
import com.ning.http.client.Response;
import org.asynchttpclient.AsyncCompletionHandler;
import org.asynchttpclient.Response;
import org.traccar.Context;
import org.traccar.model.Network;

Expand Down
4 changes: 2 additions & 2 deletions src/org/traccar/geolocation/UnwiredGeolocationProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.ning.http.client.AsyncCompletionHandler;
import com.ning.http.client.Response;
import org.asynchttpclient.AsyncCompletionHandler;
import org.asynchttpclient.Response;
import org.traccar.Context;
import org.traccar.model.CellTower;
import org.traccar.model.Network;
Expand Down
2 changes: 1 addition & 1 deletion src/org/traccar/notification/EventForwarder.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package org.traccar.notification;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.ning.http.client.AsyncHttpClient.BoundRequestBuilder;
import org.asynchttpclient.BoundRequestBuilder;
import org.traccar.Context;
import org.traccar.helper.Log;
import org.traccar.model.Device;
Expand Down

0 comments on commit 15f3258

Please sign in to comment.