Skip to content

Commit 6a5d3d3

Browse files
committed
downgrade logback and remove unused.
1 parent 83329e7 commit 6a5d3d3

File tree

3 files changed

+3
-19
lines changed

3 files changed

+3
-19
lines changed

oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
import com.google.common.collect.ImmutableMap;
6565
import com.google.common.collect.ImmutableSet;
6666
import com.google.errorprone.annotations.CanIgnoreReturnValue;
67-
import com.google.gson.Gson;
6867
import java.io.IOException;
6968
import java.io.InputStream;
7069
import java.io.ObjectInputStream;
@@ -99,7 +98,6 @@ public class ServiceAccountCredentials extends GoogleCredentials
9998
private static final int TWELVE_HOURS_IN_SECONDS = 43200;
10099
private static final int DEFAULT_LIFETIME_IN_SECONDS = 3600;
101100
private static final Logger LOGGER = LoggingUtils.getLogger(ServiceAccountCredentials.class);
102-
private static final Gson gson = new Gson();
103101

104102
private final String clientId;
105103
private final String clientEmail;

oauth2_http/java/com/google/auth/oauth2/UserCredentials.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
import com.google.auth.oauth2.MetricsUtils.RequestType;
5151
import com.google.common.base.MoreObjects;
5252
import com.google.errorprone.annotations.CanIgnoreReturnValue;
53-
import com.google.gson.Gson;
5453
import java.io.ByteArrayInputStream;
5554
import java.io.IOException;
5655
import java.io.InputStream;
@@ -71,7 +70,6 @@ public class UserCredentials extends GoogleCredentials implements IdTokenProvide
7170
private static final String PARSE_ERROR_PREFIX = "Error parsing token refresh response. ";
7271
private static final long serialVersionUID = -4800758775038679176L;
7372
private static final Logger LOGGER = LoggingUtils.getLogger(UserCredentials.class);
74-
private static final Gson gson = new Gson();
7573

7674
private final String clientId;
7775
private final String clientSecret;

oauth2_http/pom.xml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -257,26 +257,14 @@
257257
<dependency>
258258
<groupId>ch.qos.logback</groupId>
259259
<artifactId>logback-classic</artifactId>
260-
<version>1.5.11</version>
260+
<!-- Latest version with java8 support -->
261+
<version>1.3.14</version>
261262
<scope>test</scope>
262263
</dependency>
263264
<dependency>
264265
<groupId>ch.qos.logback</groupId>
265266
<artifactId>logback-core</artifactId>
266-
<version>1.5.11</version>
267-
<scope>test</scope>
268-
</dependency>
269-
<!-- For formatting and filtering, may remove after setting up tests -->
270-
<dependency>
271-
<groupId>net.logstash.logback</groupId>
272-
<artifactId>logstash-logback-encoder</artifactId>
273-
<version>8.0</version>
274-
<scope>test</scope>
275-
</dependency>
276-
<dependency>
277-
<groupId>org.codehaus.janino</groupId>
278-
<artifactId>janino</artifactId>
279-
<version>3.1.9</version>
267+
<version>1.3.14</version>
280268
<scope>test</scope>
281269
</dependency>
282270

0 commit comments

Comments
 (0)