Skip to content

Commit 9cf9e1a

Browse files
authored
Upgrade gax dependency to 1.40.0. (#4534)
* Gax dependency upgrade * Gax dependency upgrade * code formatting fix * Moving google-http-client-apache dependency to storage.
1 parent 213a56e commit 9cf9e1a

7 files changed

Lines changed: 17 additions & 12 deletions

File tree

google-cloud-bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
<dependency>
169169
<groupId>com.google.api</groupId>
170170
<artifactId>gax-bom</artifactId>
171-
<version>1.39.0</version>
171+
<version>1.40.0</version>
172172
<type>pom</type>
173173
<scope>import</scope>
174174
</dependency>

google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueListTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class FieldValueListTest {
5656
private final Map<String, String> stringPb = ImmutableMap.of("v", "string");
5757
private final Map<String, String> timestampPb = ImmutableMap.of("v", "42");
5858
private final Map<String, String> bytesPb = ImmutableMap.of("v", BYTES_BASE64);
59-
private final Map<String, Object> nullPb = ImmutableMap.of("v", Data.nullOf(String.class));
59+
private final Map<String, String> nullPb = ImmutableMap.of("v", Data.nullOf(String.class));
6060
private final Map<String, Object> repeatedPb =
6161
ImmutableMap.<String, Object>of("v", ImmutableList.<Object>of(integerPb, integerPb));
6262
private final Map<String, Object> recordPb =

google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class FieldValueTest {
4242
private static final Map<String, String> STRING_FIELD = ImmutableMap.of("v", "string");
4343
private static final Map<String, String> TIMESTAMP_FIELD = ImmutableMap.of("v", "42");
4444
private static final Map<String, String> BYTES_FIELD = ImmutableMap.of("v", BYTES_BASE64);
45-
private static final Map<String, Object> NULL_FIELD =
45+
private static final Map<String, String> NULL_FIELD =
4646
ImmutableMap.of("v", Data.nullOf(String.class));
4747
private static final Map<String, Object> REPEATED_FIELD =
4848
ImmutableMap.<String, Object>of("v", ImmutableList.<Object>of(INTEGER_FIELD, INTEGER_FIELD));

google-cloud-clients/google-cloud-core/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
</exclusion>
3838
</exclusions>
3939
</dependency>
40-
4140
<dependency>
4241
<groupId>com.google.code.findbugs</groupId>
4342
<artifactId>jsr305</artifactId>

google-cloud-clients/google-cloud-storage/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
<artifactId>google-api-services-storage</artifactId>
3232
<scope>compile</scope>
3333
</dependency>
34+
<dependency>
35+
<groupId>com.google.http-client</groupId>
36+
<artifactId>google-http-client-apache</artifactId>
37+
<version>2.0.0</version>
38+
</dependency>
3439

3540
<!-- Test dependencies -->
3641
<dependency>

google-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/BlobInfo.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,10 +483,11 @@ Builder setMediaLink(String mediaLink) {
483483

484484
@Override
485485
public Builder setMetadata(Map<String, String> metadata) {
486-
this.metadata =
487-
metadata != null
488-
? new HashMap<>(metadata)
489-
: Data.<Map<String, String>>nullOf(ImmutableEmptyMap.class);
486+
if (metadata != null) {
487+
this.metadata = new HashMap<>(metadata);
488+
} else {
489+
this.metadata = (Map<String, String>) Data.nullOf(ImmutableEmptyMap.class);
490+
}
490491
return this;
491492
}
492493

google-cloud-clients/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,14 @@
155155
<bom.version>0.80.1-alpha-SNAPSHOT</bom.version><!-- {x-version-update:google-cloud-bom:current} -->
156156
<api-client.version>1.27.0</api-client.version>
157157
<!-- make sure to keep gax version in sync with google-cloud-bom -->
158-
<gax.version>1.39.0</gax.version>
158+
<gax.version>1.40.0</gax.version>
159159
<api.common.java.version>1.7.0</api.common.java.version>
160-
<google.auth.version>0.12.0</google.auth.version>
160+
<google.auth.version>0.13.0</google.auth.version>
161161
<grpc.version>1.18.0</grpc.version>
162162
<!-- We are currently using the *-android version to support JDK7. -->
163163
<guava.version>26.0-android</guava.version>
164-
<http-client.version>1.27.0</http-client.version>
165-
<oauth-client.version>1.27.0</oauth-client.version>
164+
<http-client.version>1.28.0</http-client.version>
165+
<oauth-client.version>1.28.0</oauth-client.version>
166166
<protobuf.version>3.6.1</protobuf.version>
167167
<!-- make sure to keep opencensus version in sync with grpc -->
168168
<opencensus.version>0.18.0</opencensus.version>

0 commit comments

Comments
 (0)