Skip to content

Commit a81f348

Browse files
authored
Merge branch 'main' into new-library/health-mzeNy
2 parents 5a7466b + df74d14 commit a81f348

98 files changed

Lines changed: 5259 additions & 521 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/sdk-platform-java-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ jobs:
162162
JOB_TYPE: install
163163
- name: Integration Tests
164164
run: |
165-
bazelisk --batch test //sdk-platform-java/test/integration/...
165+
bazelisk --batch test //sdk-platform-java/test/integration/... --test_output=errors
166166
167167
bazel-25:
168168
needs: filter

generation/check_non_release_please_versions.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ for pomFile in $(find . -mindepth 2 -name pom.xml | sort ); do
2222
[[ "${pomFile}" =~ .*java-storage.* ]] || \
2323
[[ "${pomFile}" =~ .*java-storage-nio.* ]] || \
2424
[[ "${pomFile}" =~ .*java-vertexai.* ]] || \
25+
[[ "${pomFile}" =~ .*java-compute.* ]] || \
2526
[[ "${pomFile}" =~ .*.github*. ]]; then
2627
continue
2728
fi

generation_config.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3099,3 +3099,51 @@ libraries:
30993099
GAPICs:
31003100
- proto_path: google/cloud/workstations/v1
31013101
- proto_path: google/cloud/workstations/v1beta
3102+
- api_shortname: common-protos
3103+
name_pretty: Common Protos
3104+
product_documentation: https://github.com/googleapis/api-common-protos
3105+
api_description: Protobuf classes for Google's common protos.
3106+
release_level: stable
3107+
client_documentation: https://cloud.google.com/java/docs/reference/proto-google-common-protos/latest/history
3108+
distribution_name: com.google.api.grpc:proto-google-common-protos
3109+
excluded_dependencies: grpc-google-common-protos,proto-google-common-protos,proto-google-common-protos-parent
3110+
excluded_poms: proto-google-common-protos-bom,proto-google-common-protos
3111+
library_type: OTHER
3112+
GAPICs:
3113+
- proto_path: google/api
3114+
- proto_path: google/apps/card/v1
3115+
- proto_path: google/cloud
3116+
- proto_path: google/cloud/audit
3117+
- proto_path: google/cloud/location
3118+
- proto_path: google/geo/type
3119+
- proto_path: google/logging/type
3120+
- proto_path: google/longrunning
3121+
- proto_path: google/rpc
3122+
- proto_path: google/rpc/context
3123+
- proto_path: google/shopping/type
3124+
- proto_path: google/type
3125+
- api_shortname: showcase
3126+
excluded_poms: gapic-showcase-bom
3127+
name_pretty: Showcase
3128+
api_description: Showcase module
3129+
product_documentation: https://cloud.google.com/dummy
3130+
distribution_name: com.google.cloud:gapic-showcase
3131+
library_type: OTHER
3132+
GAPICs:
3133+
- proto_path: schema/google/showcase/v1beta1
3134+
- api_shortname: iam
3135+
name_pretty: IAM
3136+
product_documentation: https://cloud.google.com/iam
3137+
api_description: Manages access control for Google Cloud Platform resources
3138+
release_level: stable
3139+
client_documentation: https://cloud.google.com/java/docs/reference/proto-google-iam-v1/latest/overview
3140+
distribution_name: com.google.api.grpc:proto-google-iam-v1
3141+
excluded_dependencies: "grpc-google-iam-v1"
3142+
excluded_poms: "proto-google-iam-v1-bom,google-iam-policy,proto-google-iam-v1"
3143+
library_type: OTHER
3144+
GAPICs:
3145+
- proto_path: google/iam/v1
3146+
- proto_path: google/iam/v2
3147+
- proto_path: google/iam/v2beta
3148+
- proto_path: google/iam/v3
3149+
- proto_path: google/iam/v3beta

google-auth-library-java/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@
8080
<project.appengine.version>2.0.33</project.appengine.version>
8181
<project.findbugs.version>3.0.2</project.findbugs.version>
8282
<deploy.autorelease>false</deploy.autorelease>
83-
<project.error-prone.version>2.45.0</project.error-prone.version>
83+
<project.error-prone.version>2.48.0</project.error-prone.version>
8484
<project.protobuf.version>4.33.2</project.protobuf.version>
8585
<project.cel.version>0.9.0-proto3</project.cel.version>
8686
<project.tink.version>1.15.0</project.tink.version>
8787
<project.slf4j.version>2.0.17</project.slf4j.version>
88-
<project.gson.version>2.12.1</project.gson.version>
88+
<project.gson.version>2.13.2</project.gson.version>
8989
<project.api-common.version>2.63.0-SNAPSHOT</project.api-common.version><!-- {x-version-update:api-common:current} -->
9090
<surefire.version>3.5.2</surefire.version>
9191
<clirr.skip>true</clirr.skip>

google-cloud-jar-parent/pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,18 @@
7777
<version>4.13.2</version>
7878
<scope>test</scope>
7979
</dependency>
80+
<dependency>
81+
<groupId>ch.qos.logback</groupId>
82+
<artifactId>logback-classic</artifactId>
83+
<version>1.5.25</version>
84+
<scope>test</scope>
85+
</dependency>
86+
<dependency>
87+
<groupId>ch.qos.logback</groupId>
88+
<artifactId>logback-core</artifactId>
89+
<version>1.5.25</version>
90+
<scope>test</scope>
91+
</dependency>
8092
<dependency>
8193
<groupId>joda-time</groupId>
8294
<artifactId>joda-time</artifactId>

java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryConversionException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class BigQueryConversionException extends SQLException {
2727
new BigQueryJdbcCustomLogger(BigQueryConversionException.class.getName());
2828

2929
public BigQueryConversionException(String message, Throwable cause) {
30-
super(message, cause);
31-
LOG.severe(message, this);
30+
super(BigQueryJdbcExceptionUtils.formatMessage(message, cause), cause);
31+
LOG.severe(this.getMessage(), this);
3232
}
3333
}

java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcCoercionException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class BigQueryJdbcCoercionException extends RuntimeException {
3434
* @param cause the actual cause which was thrown while performing the coercion.
3535
*/
3636
public BigQueryJdbcCoercionException(Exception cause) {
37-
super("Coercion error", cause);
38-
LOG.severe("Coercion error", this);
37+
super(BigQueryJdbcExceptionUtils.formatMessage("Coercion error", cause), cause);
38+
LOG.severe(this.getMessage(), this);
3939
}
4040
}

java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcException.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ public BigQueryJdbcException(InterruptedException ex) {
5252
* @param ex The BigQueryException to be thrown.
5353
*/
5454
public BigQueryJdbcException(String message, BigQueryException ex) {
55-
super(message, ex);
55+
super(BigQueryJdbcExceptionUtils.formatMessage(message, ex), ex);
5656
this.bigQueryException = ex;
57-
LOG.severe(ex.getMessage(), this);
57+
LOG.severe(this.getMessage(), this);
5858
}
5959

6060
/**
@@ -64,8 +64,8 @@ public BigQueryJdbcException(String message, BigQueryException ex) {
6464
* @param cause Throwable that is being converted.
6565
*/
6666
public BigQueryJdbcException(String message, Throwable cause) {
67-
super(message, cause);
68-
LOG.severe(message, this);
67+
super(BigQueryJdbcExceptionUtils.formatMessage(message, cause), cause);
68+
LOG.severe(this.getMessage(), this);
6969
}
7070

7171
/**
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* Copyright 2026 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.bigquery.exception;
18+
19+
/** Utility class for JDBC exceptions. */
20+
final class BigQueryJdbcExceptionUtils {
21+
22+
private BigQueryJdbcExceptionUtils() {
23+
// Utility class, prevent instantiation
24+
}
25+
26+
/**
27+
* Formats the exception message by appending the cause's message (or toString if null) on a
28+
* newline.
29+
*
30+
* @param message The custom detail message.
31+
* @param cause The underlying cause of the exception.
32+
* @return The formatted message.
33+
*/
34+
public static String formatMessage(String message, Throwable cause) {
35+
return message
36+
+ (cause != null
37+
? "\n" + (cause.getMessage() != null ? cause.getMessage() : cause.toString())
38+
: "");
39+
}
40+
}

java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/exception/BigQueryJdbcRuntimeException.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ public BigQueryJdbcRuntimeException(Throwable ex) {
5050
* @param ex Throwable to be thrown.
5151
*/
5252
public BigQueryJdbcRuntimeException(String message, InterruptedException ex) {
53-
super(message, ex);
54-
LOG.severe(message, this);
53+
super(BigQueryJdbcExceptionUtils.formatMessage(message, ex), ex);
54+
LOG.severe(this.getMessage(), this);
5555
}
5656

5757
public BigQueryJdbcRuntimeException(String message, Throwable ex) {
58-
super(message, ex);
59-
LOG.severe(message, this);
58+
super(BigQueryJdbcExceptionUtils.formatMessage(message, ex), ex);
59+
LOG.severe(this.getMessage(), this);
6060
}
6161
}

0 commit comments

Comments
 (0)