From 93d9da1fc394ccd97e1fe2d9feee3fbeb4ff96ae Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Tue, 23 Apr 2024 19:48:16 +0000
Subject: [PATCH 01/17] chore(main): release 2.4.2-SNAPSHOT (#2461)
:robot: I have created a release *beep* *boop*
---
### Updating meta-information for bleeding-edge SNAPSHOT release.
---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
---
google-api-client-android/pom.xml | 2 +-
google-api-client-appengine/pom.xml | 2 +-
google-api-client-assembly/pom.xml | 2 +-
google-api-client-bom/pom.xml | 20 ++++++++++----------
google-api-client-gson/pom.xml | 2 +-
google-api-client-jackson2/pom.xml | 2 +-
google-api-client-protobuf/pom.xml | 2 +-
google-api-client-servlet/pom.xml | 2 +-
google-api-client-xml/pom.xml | 2 +-
google-api-client/pom.xml | 2 +-
pom.xml | 2 +-
versions.txt | 2 +-
12 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/google-api-client-android/pom.xml b/google-api-client-android/pom.xml
index 4c3f59f7e..d65b967eb 100644
--- a/google-api-client-android/pom.xml
+++ b/google-api-client-android/pom.xml
@@ -4,7 +4,7 @@
com.google.api-client
google-api-client-parent
- 2.4.1
+ 2.4.2-SNAPSHOT
../pom.xml
google-api-client-android
diff --git a/google-api-client-appengine/pom.xml b/google-api-client-appengine/pom.xml
index e993e70fc..f22f651bc 100644
--- a/google-api-client-appengine/pom.xml
+++ b/google-api-client-appengine/pom.xml
@@ -4,7 +4,7 @@
com.google.api-client
google-api-client-parent
- 2.4.1
+ 2.4.2-SNAPSHOT
../pom.xml
google-api-client-appengine
diff --git a/google-api-client-assembly/pom.xml b/google-api-client-assembly/pom.xml
index cb2ffecb7..66c33be07 100644
--- a/google-api-client-assembly/pom.xml
+++ b/google-api-client-assembly/pom.xml
@@ -4,7 +4,7 @@
com.google.api-client
google-api-client-parent
- 2.4.1
+ 2.4.2-SNAPSHOT
../pom.xml
com.google.api-client
diff --git a/google-api-client-bom/pom.xml b/google-api-client-bom/pom.xml
index 1becce5fb..88d41191d 100644
--- a/google-api-client-bom/pom.xml
+++ b/google-api-client-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.api-client
google-api-client-bom
- 2.4.1
+ 2.4.2-SNAPSHOT
pom
Google API Client Library for Java BOM
@@ -63,48 +63,48 @@
com.google.api-client
google-api-client
- 2.4.1
+ 2.4.2-SNAPSHOT
com.google.api-client
google-api-client-android
- 2.4.1
+ 2.4.2-SNAPSHOT
com.google.api-client
google-api-client-appengine
- 2.4.1
+ 2.4.2-SNAPSHOT
com.google.api-client
google-api-client-assembly
- 2.4.1
+ 2.4.2-SNAPSHOT
pom
com.google.api-client
google-api-client-gson
- 2.4.1
+ 2.4.2-SNAPSHOT
com.google.api-client
google-api-client-jackson2
- 2.4.1
+ 2.4.2-SNAPSHOT
com.google.api-client
google-api-client-protobuf
- 2.4.1
+ 2.4.2-SNAPSHOT
com.google.api-client
google-api-client-servlet
- 2.4.1
+ 2.4.2-SNAPSHOT
com.google.api-client
google-api-client-xml
- 2.4.1
+ 2.4.2-SNAPSHOT
diff --git a/google-api-client-gson/pom.xml b/google-api-client-gson/pom.xml
index 0ef7eaeb8..7937f3c59 100644
--- a/google-api-client-gson/pom.xml
+++ b/google-api-client-gson/pom.xml
@@ -4,7 +4,7 @@
com.google.api-client
google-api-client-parent
- 2.4.1
+ 2.4.2-SNAPSHOT
../pom.xml
google-api-client-gson
diff --git a/google-api-client-jackson2/pom.xml b/google-api-client-jackson2/pom.xml
index 9c7dadaac..f61e4878b 100644
--- a/google-api-client-jackson2/pom.xml
+++ b/google-api-client-jackson2/pom.xml
@@ -4,7 +4,7 @@
com.google.api-client
google-api-client-parent
- 2.4.1
+ 2.4.2-SNAPSHOT
../pom.xml
google-api-client-jackson2
diff --git a/google-api-client-protobuf/pom.xml b/google-api-client-protobuf/pom.xml
index 0559f6f2e..cd4a47c09 100644
--- a/google-api-client-protobuf/pom.xml
+++ b/google-api-client-protobuf/pom.xml
@@ -4,7 +4,7 @@
com.google.api-client
google-api-client-parent
- 2.4.1
+ 2.4.2-SNAPSHOT
../pom.xml
google-api-client-protobuf
diff --git a/google-api-client-servlet/pom.xml b/google-api-client-servlet/pom.xml
index fd4b3f98d..651462252 100644
--- a/google-api-client-servlet/pom.xml
+++ b/google-api-client-servlet/pom.xml
@@ -4,7 +4,7 @@
com.google.api-client
google-api-client-parent
- 2.4.1
+ 2.4.2-SNAPSHOT
../pom.xml
google-api-client-servlet
diff --git a/google-api-client-xml/pom.xml b/google-api-client-xml/pom.xml
index fd4be01da..4eb0a252d 100644
--- a/google-api-client-xml/pom.xml
+++ b/google-api-client-xml/pom.xml
@@ -4,7 +4,7 @@
com.google.api-client
google-api-client-parent
- 2.4.1
+ 2.4.2-SNAPSHOT
../pom.xml
google-api-client-xml
diff --git a/google-api-client/pom.xml b/google-api-client/pom.xml
index 6e8ad9ee0..ac041db8c 100644
--- a/google-api-client/pom.xml
+++ b/google-api-client/pom.xml
@@ -4,7 +4,7 @@
com.google.api-client
google-api-client-parent
- 2.4.1
+ 2.4.2-SNAPSHOT
../pom.xml
google-api-client
diff --git a/pom.xml b/pom.xml
index 31e811ae0..3b27673ef 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
com.google.api-client
google-api-client-parent
- 2.4.1
+ 2.4.2-SNAPSHOT
pom
Parent for the Google API Client Library for Java
The Google APIs Client Library for Java is a Java client library
diff --git a/versions.txt b/versions.txt
index 04bd1786f..d7974c747 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-api-client:2.4.1:2.4.1
+google-api-client:2.4.1:2.4.2-SNAPSHOT
From 9f3f64c42e6e9ecd3715d18582569efa3622a0ea Mon Sep 17 00:00:00 2001
From: Lawrence Qiu
Date: Thu, 9 May 2024 20:21:03 +0000
Subject: [PATCH 02/17] feat: Add ApiVersion Support (#2462)
* feat: Add ApiVersion Support
* feat: Update tests
* chore: Update test cases
* chore: Fix lint issues
* chore: Change constant access to protected
* doc: Add comment for the constant
---
.../services/AbstractGoogleClientRequest.java | 17 +++++++-
.../services/MockGoogleClientRequest.java | 26 +++++++++++
.../AbstractGoogleClientRequestTest.java | 43 +++++++++++++++++++
3 files changed, 84 insertions(+), 2 deletions(-)
diff --git a/google-api-client/src/main/java/com/google/api/client/googleapis/services/AbstractGoogleClientRequest.java b/google-api-client/src/main/java/com/google/api/client/googleapis/services/AbstractGoogleClientRequest.java
index cd6d12b65..f729375f1 100644
--- a/google-api-client/src/main/java/com/google/api/client/googleapis/services/AbstractGoogleClientRequest.java
+++ b/google-api-client/src/main/java/com/google/api/client/googleapis/services/AbstractGoogleClientRequest.java
@@ -37,6 +37,7 @@
import com.google.api.client.http.UriTemplate;
import com.google.api.client.util.GenericData;
import com.google.api.client.util.Preconditions;
+import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Joiner;
import java.io.IOException;
import java.io.InputStream;
@@ -62,7 +63,13 @@ public abstract class AbstractGoogleClientRequest extends GenericData {
*/
public static final String USER_AGENT_SUFFIX = "Google-API-Java-Client";
- private static final String API_VERSION_HEADER = "X-Goog-Api-Client";
+ private static final String API_CLIENT_HEADER = "X-Goog-Api-Client";
+
+ /**
+ * The generated request class will pass this constant as part of the header if the RPC supports
+ * ApiVersion.
+ */
+ protected static final String API_VERSION_HEADER = "X-Google-Api-Version";
/** Google client. */
private final AbstractGoogleClient abstractGoogleClient;
@@ -133,7 +140,7 @@ protected AbstractGoogleClientRequest(
requestHeaders.setUserAgent(USER_AGENT_SUFFIX + "/" + GoogleUtils.VERSION);
}
// Set the header for the Api Client version (Java and OS version)
- requestHeaders.set(API_VERSION_HEADER, ApiClientVersion.DEFAULT_VERSION);
+ requestHeaders.set(API_CLIENT_HEADER, ApiClientVersion.DEFAULT_VERSION);
}
/**
@@ -312,6 +319,12 @@ public AbstractGoogleClientRequest setRequestHeaders(HttpHeaders headers) {
return this;
}
+ /** Returns the ApiVersion set in the headers. If ApiVersion is not set, null is returned. */
+ @VisibleForTesting
+ String getApiVersionHeader() {
+ return (String) requestHeaders.get(API_VERSION_HEADER);
+ }
+
/**
* Returns the HTTP headers of the last response or {@code null} before request has been executed.
*/
diff --git a/google-api-client/src/main/java/com/google/api/client/googleapis/testing/services/MockGoogleClientRequest.java b/google-api-client/src/main/java/com/google/api/client/googleapis/testing/services/MockGoogleClientRequest.java
index c1cf32cc2..b3b0ad4de 100644
--- a/google-api-client/src/main/java/com/google/api/client/googleapis/testing/services/MockGoogleClientRequest.java
+++ b/google-api-client/src/main/java/com/google/api/client/googleapis/testing/services/MockGoogleClientRequest.java
@@ -18,6 +18,7 @@
import com.google.api.client.http.HttpHeaders;
import com.google.api.client.http.UriTemplate;
import com.google.api.client.util.Beta;
+import com.google.common.base.Strings;
/**
* {@link Beta}
@@ -46,7 +47,32 @@ public MockGoogleClientRequest(
String uriTemplate,
HttpContent content,
Class responseClass) {
+ this(client, method, uriTemplate, content, responseClass, null);
+ }
+
+ /**
+ * @param client Google client
+ * @param method HTTP Method
+ * @param uriTemplate URI template for the path relative to the base URL. If it starts with a "/"
+ * the base path from the base URL will be stripped out. The URI template can also be a full
+ * URL. URI template expansion is done using {@link UriTemplate#expand(String, String, Object,
+ * boolean)}
+ * @param content HTTP content or {@code null} for none
+ * @param responseClass response class to parse into
+ * @param apiVersion ApiVersion to be passed to the header
+ */
+ public MockGoogleClientRequest(
+ AbstractGoogleClient client,
+ String method,
+ String uriTemplate,
+ HttpContent content,
+ Class responseClass,
+ String apiVersion) {
super(client, method, uriTemplate, content, responseClass);
+ // Matches generator code: Null or Empty String is not set to the header
+ if (!Strings.isNullOrEmpty(apiVersion)) {
+ getRequestHeaders().set(API_VERSION_HEADER, apiVersion);
+ }
}
@Override
diff --git a/google-api-client/src/test/java/com/google/api/client/googleapis/services/AbstractGoogleClientRequestTest.java b/google-api-client/src/test/java/com/google/api/client/googleapis/services/AbstractGoogleClientRequestTest.java
index 1eefdb139..79e156b34 100644
--- a/google-api-client/src/test/java/com/google/api/client/googleapis/services/AbstractGoogleClientRequestTest.java
+++ b/google-api-client/src/test/java/com/google/api/client/googleapis/services/AbstractGoogleClientRequestTest.java
@@ -242,6 +242,49 @@ public void testUserAgent() throws IOException {
request.executeUnparsed();
}
+ public void testSetsApiVersionHeader_apiVersionSet() {
+ String apiVersion = "testVersion";
+ HttpTransport transport = new MockHttpTransport();
+ MockGoogleClient client =
+ new MockGoogleClient.Builder(transport, ROOT_URL, SERVICE_PATH, JSON_OBJECT_PARSER, null)
+ .build();
+ AbstractGoogleClientRequest request =
+ new MockGoogleClientRequest<>(
+ client, HttpMethods.GET, URI_TEMPLATE, null, Void.class, apiVersion);
+ assertEquals(apiVersion, request.getApiVersionHeader());
+ }
+
+ public void testDoesNotSetsApiVersionHeader_noApiVersionSet() {
+ HttpTransport transport = new MockHttpTransport();
+ MockGoogleClient client =
+ new MockGoogleClient.Builder(transport, ROOT_URL, SERVICE_PATH, JSON_OBJECT_PARSER, null)
+ .build();
+ AbstractGoogleClientRequest request =
+ new MockGoogleClientRequest<>(client, HttpMethods.GET, URI_TEMPLATE, null, Void.class);
+ assertNull(request.getApiVersionHeader());
+ }
+
+ public void testNullApiVersionHeader_noApiVersionSet() {
+ HttpTransport transport = new MockHttpTransport();
+ MockGoogleClient client =
+ new MockGoogleClient.Builder(transport, ROOT_URL, SERVICE_PATH, JSON_OBJECT_PARSER, null)
+ .build();
+ final AbstractGoogleClientRequest request =
+ new MockGoogleClientRequest<>(
+ client, HttpMethods.GET, URI_TEMPLATE, null, Void.class, null);
+ assertNull(request.getApiVersionHeader());
+ }
+
+ public void testEmptyStringApiVersionHeader_noApiVersionSet() {
+ HttpTransport transport = new MockHttpTransport();
+ MockGoogleClient client =
+ new MockGoogleClient.Builder(transport, ROOT_URL, SERVICE_PATH, JSON_OBJECT_PARSER, null)
+ .build();
+ final AbstractGoogleClientRequest request =
+ new MockGoogleClientRequest<>(client, HttpMethods.GET, URI_TEMPLATE, null, Void.class, "");
+ assertNull(request.getApiVersionHeader());
+ }
+
public void testSetsApiClientHeader() throws IOException {
HttpTransport transport =
new AssertHeaderTransport("X-Goog-Api-Client", "gl-java/\\d+\\.\\d+\\.\\d+.*");
From ab4fb05988a53e26969d4c03b4b9ab31e5ec0453 Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Thu, 9 May 2024 16:21:24 -0400
Subject: [PATCH 03/17] chore: update dependency versions in java templates
(#1964) (#2463)
* chore: update dependency versions in java templates
* update other templates
Source-Link: https://github.com/googleapis/synthtool/commit/0b86c72fe652dd7e52ba05a63f61bc1399ad5d65
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:68ba5f5164a4b55529d358bb262feaa000536a0c62980727dd05a91bbb47ea5e
Co-authored-by: Owl Bot
---
.github/.OwlBot.lock.yaml | 4 ++--
.github/workflows/approve-readme.yaml | 2 +-
.github/workflows/renovate_config_check.yaml | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index dc05a7276..5db36a5f7 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
- digest: sha256:a6aa751984f1e905c3ae5a3aac78fc7b68210626ce91487dc7ff4f0a06f010cc
-# created: 2024-01-22T14:14:20.913785597Z
+ digest: sha256:68ba5f5164a4b55529d358bb262feaa000536a0c62980727dd05a91bbb47ea5e
+# created: 2024-05-09T16:31:37.168667071Z
diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml
index f5fc7d516..59f00b8eb 100644
--- a/.github/workflows/approve-readme.yaml
+++ b/.github/workflows/approve-readme.yaml
@@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme'
steps:
- - uses: actions/github-script@v6
+ - uses: actions/github-script@v7
with:
github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
script: |
diff --git a/.github/workflows/renovate_config_check.yaml b/.github/workflows/renovate_config_check.yaml
index 87d8eb2be..7c5ec7865 100644
--- a/.github/workflows/renovate_config_check.yaml
+++ b/.github/workflows/renovate_config_check.yaml
@@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v4
- name: Set up Node.js
- uses: actions/setup-node@v3
+ uses: actions/setup-node@v4
with:
node-version: '20'
From 0ea6c2b0db7a9bc624c442cb7ea9a15f8ec6b21c Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 9 May 2024 22:21:43 +0200
Subject: [PATCH 04/17] fix(deps): update dependency
com.google.api-client:google-api-client to v2.4.1 (#2448)
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 69008cc8b..d1a3df82a 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -29,7 +29,7 @@
com.google.api-client
google-api-client
- 2.3.0
+ 2.4.1
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index ba42d268f..388775f5b 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -28,7 +28,7 @@
com.google.api-client
google-api-client
- 2.3.0
+ 2.4.1
From 252c49406108bb402c9f4d8f6cb9116af2b96697 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 9 May 2024 22:22:09 +0200
Subject: [PATCH 05/17] fix(deps): update dependency com.google.guava:guava to
v33.2.0-jre (#2449)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 3b27673ef..a37005ab5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -517,7 +517,7 @@
3.0.2
2.8.6
3.25.3
- 33.0.0-jre
+ 33.2.0-jre
2.0.25
1.1.4c
2.3-20090302111651
From c1a50b700fe81f39dcc00046ba0c4ad805e6da20 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 9 May 2024 22:22:41 +0200
Subject: [PATCH 06/17] chore(deps): update dependency
org.apache.maven.plugins:maven-gpg-plugin to v3.2.4 (#2453)
---
google-api-client-bom/pom.xml | 2 +-
pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/google-api-client-bom/pom.xml b/google-api-client-bom/pom.xml
index 88d41191d..6632381ec 100644
--- a/google-api-client-bom/pom.xml
+++ b/google-api-client-bom/pom.xml
@@ -170,7 +170,7 @@
org.apache.maven.plugins
maven-gpg-plugin
- 3.2.0
+ 3.2.4
sign-artifacts
diff --git a/pom.xml b/pom.xml
index a37005ab5..5e89828bc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -543,7 +543,7 @@
org.apache.maven.plugins
maven-gpg-plugin
- 3.2.0
+ 3.2.4
sign-artifacts
From a9bf4c4665169695ae5ae55ea0fb0138bda20662 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 9 May 2024 22:22:53 +0200
Subject: [PATCH 07/17] chore(deps): update dependency
org.apache.maven.plugins:maven-assembly-plugin to v3.7.1 (#2454)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 5e89828bc..102c35882 100644
--- a/pom.xml
+++ b/pom.xml
@@ -256,7 +256,7 @@
maven-assembly-plugin
- 3.7.0
+ 3.7.1
maven-compiler-plugin
From 12b9c13ea1bb20e1b62b6eb382d1583c01b0b13a Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 9 May 2024 22:23:04 +0200
Subject: [PATCH 08/17] chore(deps): update dependency
org.apache.maven.plugins:maven-compiler-plugin to v3.13.0 (#2455)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 102c35882..3594fe0d7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -260,7 +260,7 @@
maven-compiler-plugin
- 3.12.1
+ 3.13.0
1.7
1.7
From 3368e503b6fbe3b6ae14d039b72d7b748fec0914 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 9 May 2024 22:25:02 +0200
Subject: [PATCH 09/17] chore(deps): update dependency
org.apache.maven.plugins:maven-deploy-plugin to v3.1.2 (#2466)
---
samples/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/pom.xml b/samples/pom.xml
index 91b1098a5..a2fd7d435 100644
--- a/samples/pom.xml
+++ b/samples/pom.xml
@@ -38,7 +38,7 @@
org.apache.maven.plugins
maven-deploy-plugin
- 3.1.1
+ 3.1.2
true
From d2a6f01a831467d88705c4c54f5c31ef80742025 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 9 May 2024 22:25:21 +0200
Subject: [PATCH 10/17] chore(deps): update actions/checkout digest to 0ad4b8f
(#2465)
---
.github/workflows/ci.yaml | 10 +++++-----
.github/workflows/downstream.yaml | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 37fc04345..8ac2a5b4f 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -11,7 +11,7 @@ jobs:
matrix:
java: [8, 11]
steps:
- - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
+ - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- uses: actions/setup-java@v1
with:
java-version: ${{matrix.java}}
@@ -34,7 +34,7 @@ jobs:
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
+ - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- uses: actions/setup-java@v1
with:
java-version: 8
@@ -62,7 +62,7 @@ jobs:
matrix:
java: [8, 11]
steps:
- - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
+ - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- uses: actions/setup-java@v1
with:
java-version: ${{matrix.java}}
@@ -72,7 +72,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
+ - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- uses: actions/setup-java@v1
with:
java-version: 11
@@ -84,7 +84,7 @@ jobs:
clirr:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
+ - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- uses: actions/setup-java@v1
with:
java-version: 8
diff --git a/.github/workflows/downstream.yaml b/.github/workflows/downstream.yaml
index c756c63e2..edc40acd8 100644
--- a/.github/workflows/downstream.yaml
+++ b/.github/workflows/downstream.yaml
@@ -132,7 +132,7 @@ jobs:
- workflow-executions
- workflows
steps:
- - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
+ - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- uses: actions/setup-java@v3
with:
distribution: zulu
From a8d74c37708919d519f89dfe0638483890d68ada Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 9 May 2024 22:26:42 +0200
Subject: [PATCH 11/17] chore(deps): update actions/github-script action to v7
(#2395)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chore(deps): update actions/github-script action to v7
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot
---
.github/workflows/auto-release.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml
index 7a106d007..18d92e5a2 100644
--- a/.github/workflows/auto-release.yaml
+++ b/.github/workflows/auto-release.yaml
@@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
if: contains(github.head_ref, 'release-please')
steps:
- - uses: actions/github-script@v6
+ - uses: actions/github-script@v7
with:
github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
debug: true
From ffc0e6d2121a48b603374a43830570b8d8a282bc Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 9 May 2024 23:21:43 +0200
Subject: [PATCH 12/17] fix(deps): update dependency
com.google.appengine:appengine-api-1.0-sdk to v2.0.27 (#2468)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 3594fe0d7..c8a215f45 100644
--- a/pom.xml
+++ b/pom.xml
@@ -518,7 +518,7 @@
2.8.6
3.25.3
33.2.0-jre
- 2.0.25
+ 2.0.27
1.1.4c
2.3-20090302111651
3.2.2
From d6a353b39c0f78ca9ac6e1e539add1f5a2340da4 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Thu, 9 May 2024 23:22:00 +0200
Subject: [PATCH 13/17] chore(deps): update dependency
org.apache.maven.plugins:maven-jar-plugin to v3.4.1 (#2469)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index c8a215f45..e34a8e90d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -296,7 +296,7 @@
org.apache.maven.plugins
maven-jar-plugin
- 3.3.0
+ 3.4.1
From 69e6724e51f73cb46524b3a61989639341b10151 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 10 May 2024 16:32:58 +0200
Subject: [PATCH 14/17] fix(deps): update dependency
com.google.cloud:libraries-bom to v26.39.0 (#2471)
---
samples/snippets/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index a006534e0..d2979cdc1 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -30,7 +30,7 @@
com.google.cloud
libraries-bom
- 26.34.0
+ 26.39.0
pom
import
From 8440f326dd6b5718c433de90707ef599532b58d2 Mon Sep 17 00:00:00 2001
From: Mend Renovate
Date: Fri, 10 May 2024 16:33:12 +0200
Subject: [PATCH 15/17] fix(deps): update dependency
commons-codec:commons-codec to v1.17.0 (#2472)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index e34a8e90d..39234c55a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -511,7 +511,7 @@
1.44.1
4.4.16
4.5.14
- 1.16.1
+ 1.17.0
1.35.0
1.23.0
3.0.2
From bd396ca929c31c54da1d6969ae5917ffaa32a02a Mon Sep 17 00:00:00 2001
From: Lawrence Qiu
Date: Fri, 10 May 2024 14:33:23 +0000
Subject: [PATCH 16/17] fix: Fix ApiVersion header typo (#2467)
---
.../client/googleapis/services/AbstractGoogleClientRequest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/google-api-client/src/main/java/com/google/api/client/googleapis/services/AbstractGoogleClientRequest.java b/google-api-client/src/main/java/com/google/api/client/googleapis/services/AbstractGoogleClientRequest.java
index f729375f1..c9a7b5967 100644
--- a/google-api-client/src/main/java/com/google/api/client/googleapis/services/AbstractGoogleClientRequest.java
+++ b/google-api-client/src/main/java/com/google/api/client/googleapis/services/AbstractGoogleClientRequest.java
@@ -69,7 +69,7 @@ public abstract class AbstractGoogleClientRequest extends GenericData {
* The generated request class will pass this constant as part of the header if the RPC supports
* ApiVersion.
*/
- protected static final String API_VERSION_HEADER = "X-Google-Api-Version";
+ protected static final String API_VERSION_HEADER = "X-Goog-Api-Version";
/** Google client. */
private final AbstractGoogleClient abstractGoogleClient;
From a7d74f79c99f147622f9533d0bc3bc8546f61243 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Fri, 10 May 2024 10:44:20 -0400
Subject: [PATCH 17/17] chore(main): release 2.5.0 (#2464)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
CHANGELOG.md | 17 +++++++++++++++++
google-api-client-android/pom.xml | 2 +-
google-api-client-appengine/pom.xml | 2 +-
google-api-client-assembly/pom.xml | 2 +-
google-api-client-bom/pom.xml | 20 ++++++++++----------
google-api-client-gson/pom.xml | 2 +-
google-api-client-jackson2/pom.xml | 2 +-
google-api-client-protobuf/pom.xml | 2 +-
google-api-client-servlet/pom.xml | 2 +-
google-api-client-xml/pom.xml | 2 +-
google-api-client/pom.xml | 2 +-
pom.xml | 2 +-
versions.txt | 2 +-
13 files changed, 38 insertions(+), 21 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c46e5adeb..7dc89f797 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,22 @@
# Changelog
+## [2.5.0](https://github.com/googleapis/google-api-java-client/compare/v2.4.1...v2.5.0) (2024-05-10)
+
+
+### Features
+
+* Add ApiVersion Support ([#2462](https://github.com/googleapis/google-api-java-client/issues/2462)) ([9f3f64c](https://github.com/googleapis/google-api-java-client/commit/9f3f64c42e6e9ecd3715d18582569efa3622a0ea))
+
+
+### Bug Fixes
+
+* **deps:** Update dependency com.google.api-client:google-api-client to v2.4.1 ([#2448](https://github.com/googleapis/google-api-java-client/issues/2448)) ([0ea6c2b](https://github.com/googleapis/google-api-java-client/commit/0ea6c2b0db7a9bc624c442cb7ea9a15f8ec6b21c))
+* **deps:** Update dependency com.google.appengine:appengine-api-1.0-sdk to v2.0.27 ([#2468](https://github.com/googleapis/google-api-java-client/issues/2468)) ([ffc0e6d](https://github.com/googleapis/google-api-java-client/commit/ffc0e6d2121a48b603374a43830570b8d8a282bc))
+* **deps:** Update dependency com.google.cloud:libraries-bom to v26.39.0 ([#2471](https://github.com/googleapis/google-api-java-client/issues/2471)) ([69e6724](https://github.com/googleapis/google-api-java-client/commit/69e6724e51f73cb46524b3a61989639341b10151))
+* **deps:** Update dependency com.google.guava:guava to v33.2.0-jre ([#2449](https://github.com/googleapis/google-api-java-client/issues/2449)) ([252c494](https://github.com/googleapis/google-api-java-client/commit/252c49406108bb402c9f4d8f6cb9116af2b96697))
+* **deps:** Update dependency commons-codec:commons-codec to v1.17.0 ([#2472](https://github.com/googleapis/google-api-java-client/issues/2472)) ([8440f32](https://github.com/googleapis/google-api-java-client/commit/8440f326dd6b5718c433de90707ef599532b58d2))
+* Fix ApiVersion header typo ([#2467](https://github.com/googleapis/google-api-java-client/issues/2467)) ([bd396ca](https://github.com/googleapis/google-api-java-client/commit/bd396ca929c31c54da1d6969ae5917ffaa32a02a))
+
## [2.4.1](https://github.com/googleapis/google-api-java-client/compare/v2.4.0...v2.4.1) (2024-03-26)
diff --git a/google-api-client-android/pom.xml b/google-api-client-android/pom.xml
index d65b967eb..a90477081 100644
--- a/google-api-client-android/pom.xml
+++ b/google-api-client-android/pom.xml
@@ -4,7 +4,7 @@
com.google.api-client
google-api-client-parent
- 2.4.2-SNAPSHOT
+ 2.5.0
../pom.xml
google-api-client-android
diff --git a/google-api-client-appengine/pom.xml b/google-api-client-appengine/pom.xml
index f22f651bc..0878911f2 100644
--- a/google-api-client-appengine/pom.xml
+++ b/google-api-client-appengine/pom.xml
@@ -4,7 +4,7 @@
com.google.api-client
google-api-client-parent
- 2.4.2-SNAPSHOT
+ 2.5.0
../pom.xml
google-api-client-appengine
diff --git a/google-api-client-assembly/pom.xml b/google-api-client-assembly/pom.xml
index 66c33be07..1aed8b365 100644
--- a/google-api-client-assembly/pom.xml
+++ b/google-api-client-assembly/pom.xml
@@ -4,7 +4,7 @@
com.google.api-client
google-api-client-parent
- 2.4.2-SNAPSHOT
+ 2.5.0
../pom.xml
com.google.api-client
diff --git a/google-api-client-bom/pom.xml b/google-api-client-bom/pom.xml
index 6632381ec..3b6aa52b1 100644
--- a/google-api-client-bom/pom.xml
+++ b/google-api-client-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.api-client
google-api-client-bom
- 2.4.2-SNAPSHOT
+ 2.5.0
pom
Google API Client Library for Java BOM
@@ -63,48 +63,48 @@
com.google.api-client
google-api-client
- 2.4.2-SNAPSHOT
+ 2.5.0
com.google.api-client
google-api-client-android
- 2.4.2-SNAPSHOT
+ 2.5.0
com.google.api-client
google-api-client-appengine
- 2.4.2-SNAPSHOT
+ 2.5.0
com.google.api-client
google-api-client-assembly
- 2.4.2-SNAPSHOT
+ 2.5.0
pom
com.google.api-client
google-api-client-gson
- 2.4.2-SNAPSHOT
+ 2.5.0
com.google.api-client
google-api-client-jackson2
- 2.4.2-SNAPSHOT
+ 2.5.0
com.google.api-client
google-api-client-protobuf
- 2.4.2-SNAPSHOT
+ 2.5.0
com.google.api-client
google-api-client-servlet
- 2.4.2-SNAPSHOT
+ 2.5.0
com.google.api-client
google-api-client-xml
- 2.4.2-SNAPSHOT
+ 2.5.0
diff --git a/google-api-client-gson/pom.xml b/google-api-client-gson/pom.xml
index 7937f3c59..958f20b3f 100644
--- a/google-api-client-gson/pom.xml
+++ b/google-api-client-gson/pom.xml
@@ -4,7 +4,7 @@
com.google.api-client
google-api-client-parent
- 2.4.2-SNAPSHOT
+ 2.5.0
../pom.xml
google-api-client-gson
diff --git a/google-api-client-jackson2/pom.xml b/google-api-client-jackson2/pom.xml
index f61e4878b..bcab9959e 100644
--- a/google-api-client-jackson2/pom.xml
+++ b/google-api-client-jackson2/pom.xml
@@ -4,7 +4,7 @@
com.google.api-client
google-api-client-parent
- 2.4.2-SNAPSHOT
+ 2.5.0
../pom.xml
google-api-client-jackson2
diff --git a/google-api-client-protobuf/pom.xml b/google-api-client-protobuf/pom.xml
index cd4a47c09..a0a0fad42 100644
--- a/google-api-client-protobuf/pom.xml
+++ b/google-api-client-protobuf/pom.xml
@@ -4,7 +4,7 @@
com.google.api-client
google-api-client-parent
- 2.4.2-SNAPSHOT
+ 2.5.0
../pom.xml
google-api-client-protobuf
diff --git a/google-api-client-servlet/pom.xml b/google-api-client-servlet/pom.xml
index 651462252..dff52b4be 100644
--- a/google-api-client-servlet/pom.xml
+++ b/google-api-client-servlet/pom.xml
@@ -4,7 +4,7 @@
com.google.api-client
google-api-client-parent
- 2.4.2-SNAPSHOT
+ 2.5.0
../pom.xml
google-api-client-servlet
diff --git a/google-api-client-xml/pom.xml b/google-api-client-xml/pom.xml
index 4eb0a252d..27aaca78c 100644
--- a/google-api-client-xml/pom.xml
+++ b/google-api-client-xml/pom.xml
@@ -4,7 +4,7 @@
com.google.api-client
google-api-client-parent
- 2.4.2-SNAPSHOT
+ 2.5.0
../pom.xml
google-api-client-xml
diff --git a/google-api-client/pom.xml b/google-api-client/pom.xml
index ac041db8c..2a602d27f 100644
--- a/google-api-client/pom.xml
+++ b/google-api-client/pom.xml
@@ -4,7 +4,7 @@
com.google.api-client
google-api-client-parent
- 2.4.2-SNAPSHOT
+ 2.5.0
../pom.xml
google-api-client
diff --git a/pom.xml b/pom.xml
index 39234c55a..8520fce06 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
com.google.api-client
google-api-client-parent
- 2.4.2-SNAPSHOT
+ 2.5.0
pom
Parent for the Google API Client Library for Java
The Google APIs Client Library for Java is a Java client library
diff --git a/versions.txt b/versions.txt
index d7974c747..7c7ebfa0d 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-api-client:2.4.1:2.4.2-SNAPSHOT
+google-api-client:2.5.0:2.5.0