Skip to content
Merged
46 changes: 46 additions & 0 deletions .cloudbuild/jdbc_nightly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Github action job to test core java library features on
# downstream client libraries before they are released.
options:
workerPool: 'projects/bigquery-devtools-drivers/locations/us-east1/workerPools/java-bigquery-jdbc-pool'
dynamic_substitutions: true
logging: CLOUD_LOGGING_ONLY

timeout: 10000s
steps:
- name: 'gcr.io/cloud-devrel-public-resources/java11'
id: "IT Tests"
timeout: 10000s
entrypoint: 'bash'
args: ['.kokoro/build.sh']
env:
- 'JOB_TYPE=jdbc-integration'
secretEnv: ['SA_EMAIL', 'KMS_RESOURCE_PATH', 'SA_SECRET']
- name: 'gcr.io/cloud-devrel-public-resources/java11'
id: "IT Nightly Tests"
timeout: 10000s
entrypoint: 'bash'
args: ['.kokoro/build.sh']
env:
- 'JOB_TYPE=jdbc-nightly-integration'

availableSecrets:
secretManager:
- versionName: projects/$PROJECT_ID/secrets/jdbc-presubmit-sa-email/versions/latest
env: 'SA_EMAIL'
- versionName: projects/$PROJECT_ID/secrets/kms_resource_path/versions/latest
env: 'KMS_RESOURCE_PATH'
- versionName: projects/$PROJECT_ID/secrets/GoogleJDBCServiceAccountSecret/versions/latest
env: 'SA_SECRET'
41 changes: 41 additions & 0 deletions .cloudbuild/jdbc_presubmit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Github action job to test core java library features on
# downstream client libraries before they are released.
options:
workerPool: 'projects/bigquery-devtools-drivers/locations/us-east1/workerPools/java-bigquery-jdbc-pool'
dynamic_substitutions: true
logging: CLOUD_LOGGING_ONLY

substitutions:
_JOB_TYPE: "jdbc-integration"

timeout: 2000s
steps:
- name: 'gcr.io/cloud-devrel-public-resources/java11'
id: "IT Tests"
timeout: 2000s
entrypoint: 'bash'
args: ['.kokoro/build.sh']
env:
- 'JOB_TYPE=${_JOB_TYPE}'
secretEnv: ['SA_EMAIL', 'KMS_RESOURCE_PATH', 'SA_SECRET']
availableSecrets:
secretManager:
- versionName: projects/$PROJECT_ID/secrets/jdbc-presubmit-sa-email/versions/latest
env: 'SA_EMAIL'
- versionName: projects/$PROJECT_ID/secrets/kms_resource_path/versions/latest
env: 'KMS_RESOURCE_PATH'
- versionName: projects/$PROJECT_ID/secrets/GoogleJDBCServiceAccountSecret/versions/latest
env: 'SA_SECRET'
33 changes: 32 additions & 1 deletion .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ javadoc)
;;
integration)
mvn -B ${INTEGRATION_TEST_ARGS} \
-pl "!google-cloud-bigquery-jdbc" \
-ntp \
-Penable-integration-tests \
-DtrimStackTrace=false \
Expand All @@ -70,9 +71,39 @@ integration)
verify
RETURN_CODE=$?
;;
jdbc-integration)
mvn -B ${INTEGRATION_TEST_ARGS} \
-pl "google-cloud-bigquery-jdbc" \
-ntp \
-Dtest=ITBigQueryJDBCTest \
-DtrimStackTrace=false \
-Dclirr.skip=true \
-Denforcer.skip=true \
-fae \
verify
RETURN_CODE=$?
;;
jdbc-nightly-integration)
mvn -B ${INTEGRATION_TEST_ARGS} \
-pl "google-cloud-bigquery-jdbc" \
-ntp \
-Dtest=ITNightlyBigQueryTest \
-DtrimStackTrace=false \
-Dclirr.skip=true \
-Denforcer.skip=true \
-fae \
-DargLine="-Xmx32g" \
-e \
verify
RETURN_CODE=$?
;;
graalvm)
# Run Unit and Integration Tests with Native Image
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
mvn -B ${INTEGRATION_TEST_ARGS} \
-pl "!google-cloud-bigquery-jdbc" \
-ntp \
-Pnative \
test
RETURN_CODE=$?
;;
samples)
Expand Down
105 changes: 104 additions & 1 deletion google-cloud-bigquery-jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-bigquery-jdbc</artifactId>
<version>0.1.0-SNAPSHOT</version>
<version>0.1.0</version><!-- {x-version-update:google-cloud-bigquery-jdbc:current} -->
<packaging>jar</packaging>
<name>BigQuery JDBC</name>
<url>https://github.com/googleapis/java-bigquery-jdbc</url>
Expand Down Expand Up @@ -55,6 +55,18 @@
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.13</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<ignoredUsedUndeclaredDependencies>
<ignoredUsedUndeclaredDependency>com.google.*:*</ignoredUsedUndeclaredDependency>
<ignoredUsedUndeclaredDependency>org.apache.arrow:*</ignoredUsedUndeclaredDependency>
<ignoredUsedUndeclaredDependency>org.apache.httpcomponents.*:*</ignoredUsedUndeclaredDependency>
<ignoredUsedUndeclaredDependency>io.grpc:*</ignoredUsedUndeclaredDependency>
</ignoredUsedUndeclaredDependencies>
</configuration>
</plugin>
</plugins>
</build>

Expand Down Expand Up @@ -86,6 +98,97 @@
</exclusion>
</exclusions>
</dependency>

<!-- Transitive Dependencies -->
<dependency>
<groupId>com.google.api</groupId>
<artifactId>api-common</artifactId>
</dependency>
<dependency>
<groupId>com.google.api</groupId>
<artifactId>gax</artifactId>
</dependency>
<dependency>
<groupId>com.google.api</groupId>
<artifactId>gax-grpc</artifactId>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-bigquerystorage-v1</artifactId>
</dependency>

<dependency>
<groupId>com.google.auth</groupId>
<artifactId>google-auth-library-oauth2-http</artifactId>
</dependency>
<dependency>
<groupId>com.google.auth</groupId>
<artifactId>google-auth-library-credentials</artifactId>
</dependency>

<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-core</artifactId>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-core-http</artifactId>
</dependency>

<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>

<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</dependency>
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client</artifactId>
</dependency>

<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-api</artifactId>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-core</artifactId>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty-shaded</artifactId>
</dependency>


<dependency>
<groupId>org.apache.arrow</groupId>
<artifactId>arrow-vector</artifactId>
</dependency>
<dependency>
<groupId>org.apache.arrow</groupId>
<artifactId>arrow-memory-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents.core5</groupId>
<artifactId>httpcore5</artifactId>
</dependency>

<!-- Test Dependencies -->
<dependency>
<groupId>com.google.truth</groupId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
<modules>
<module>google-cloud-bigquery</module>
<module>google-cloud-bigquery-bom</module>
<module>google-cloud-bigquery-jdbc</module>
</modules>

<build>
Expand Down Expand Up @@ -259,4 +260,3 @@
</profile>
</profiles>
</project>

3 changes: 2 additions & 1 deletion versions.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Format:
# module:released-version:current-version

google-cloud-bigquery:2.57.2:2.57.2
google-cloud-bigquery:2.57.2:2.57.2
google-cloud-bigquery-jdbc:0.1.0:0.1.0
Loading