From 487c1f43dbe28c811ba77e11e87a9a290ab5cf50 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Tue, 1 Mar 2022 01:00:26 +0000
Subject: [PATCH 01/11] chore(main): release 2.1.5-SNAPSHOT (#623)
:robot: I have created a release *beep* *boop*
---
### Updating meta-information for bleeding-edge SNAPSHOT release.
---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
---
google-cloud-tasks-bom/pom.xml | 16 ++++++++--------
google-cloud-tasks/pom.xml | 4 ++--
grpc-google-cloud-tasks-v2/pom.xml | 4 ++--
grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++--
grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++--
pom.xml | 16 ++++++++--------
proto-google-cloud-tasks-v2/pom.xml | 4 ++--
proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++--
proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++--
versions.txt | 14 +++++++-------
10 files changed, 37 insertions(+), 37 deletions(-)
diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml
index f8fb5d26..c092a79c 100644
--- a/google-cloud-tasks-bom/pom.xml
+++ b/google-cloud-tasks-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-tasks-bom
- 2.1.4
+ 2.1.5-SNAPSHOT
pom
com.google.cloud
@@ -52,37 +52,37 @@
com.google.cloud
google-cloud-tasks
- 2.1.4
+ 2.1.5-SNAPSHOT
com.google.api.grpc
grpc-google-cloud-tasks-v2beta3
- 0.91.4
+ 0.91.5-SNAPSHOT
com.google.api.grpc
grpc-google-cloud-tasks-v2beta2
- 0.91.4
+ 0.91.5-SNAPSHOT
com.google.api.grpc
grpc-google-cloud-tasks-v2
- 2.1.4
+ 2.1.5-SNAPSHOT
com.google.api.grpc
proto-google-cloud-tasks-v2beta3
- 0.91.4
+ 0.91.5-SNAPSHOT
com.google.api.grpc
proto-google-cloud-tasks-v2beta2
- 0.91.4
+ 0.91.5-SNAPSHOT
com.google.api.grpc
proto-google-cloud-tasks-v2
- 2.1.4
+ 2.1.5-SNAPSHOT
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml
index 08233231..776c3cfb 100644
--- a/google-cloud-tasks/pom.xml
+++ b/google-cloud-tasks/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-tasks
- 2.1.4
+ 2.1.5-SNAPSHOT
jar
Google Cloud Tasks
https://github.com/googleapis/java-tasks
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-tasks-parent
- 2.1.4
+ 2.1.5-SNAPSHOT
google-cloud-tasks
diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml
index d8029c34..b7ea868e 100644
--- a/grpc-google-cloud-tasks-v2/pom.xml
+++ b/grpc-google-cloud-tasks-v2/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-tasks-v2
- 2.1.4
+ 2.1.5-SNAPSHOT
grpc-google-cloud-tasks-v2
GRPC library for grpc-google-cloud-tasks-v2
com.google.cloud
google-cloud-tasks-parent
- 2.1.4
+ 2.1.5-SNAPSHOT
diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml
index 9b2852b9..95a34be5 100644
--- a/grpc-google-cloud-tasks-v2beta2/pom.xml
+++ b/grpc-google-cloud-tasks-v2beta2/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-tasks-v2beta2
- 0.91.4
+ 0.91.5-SNAPSHOT
grpc-google-cloud-tasks-v2beta2
GRPC library for grpc-google-cloud-tasks-v2beta2
com.google.cloud
google-cloud-tasks-parent
- 2.1.4
+ 2.1.5-SNAPSHOT
diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml
index 868b01a7..0ec962e9 100644
--- a/grpc-google-cloud-tasks-v2beta3/pom.xml
+++ b/grpc-google-cloud-tasks-v2beta3/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-tasks-v2beta3
- 0.91.4
+ 0.91.5-SNAPSHOT
grpc-google-cloud-tasks-v2beta3
GRPC library for grpc-google-cloud-tasks-v2beta3
com.google.cloud
google-cloud-tasks-parent
- 2.1.4
+ 2.1.5-SNAPSHOT
diff --git a/pom.xml b/pom.xml
index ba6a5b3b..5e39f0a9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-tasks-parent
pom
- 2.1.4
+ 2.1.5-SNAPSHOT
Google Cloud Tasks Parent
https://github.com/googleapis/java-tasks
@@ -61,37 +61,37 @@
com.google.api.grpc
proto-google-cloud-tasks-v2beta3
- 0.91.4
+ 0.91.5-SNAPSHOT
com.google.api.grpc
proto-google-cloud-tasks-v2beta2
- 0.91.4
+ 0.91.5-SNAPSHOT
com.google.api.grpc
proto-google-cloud-tasks-v2
- 2.1.4
+ 2.1.5-SNAPSHOT
com.google.api.grpc
grpc-google-cloud-tasks-v2beta3
- 0.91.4
+ 0.91.5-SNAPSHOT
com.google.api.grpc
grpc-google-cloud-tasks-v2beta2
- 0.91.4
+ 0.91.5-SNAPSHOT
com.google.api.grpc
grpc-google-cloud-tasks-v2
- 2.1.4
+ 2.1.5-SNAPSHOT
com.google.cloud
google-cloud-tasks
- 2.1.4
+ 2.1.5-SNAPSHOT
diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml
index b71485f8..78e2ed01 100644
--- a/proto-google-cloud-tasks-v2/pom.xml
+++ b/proto-google-cloud-tasks-v2/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-tasks-v2
- 2.1.4
+ 2.1.5-SNAPSHOT
proto-google-cloud-tasks-v2
PROTO library for proto-google-cloud-tasks-v2
com.google.cloud
google-cloud-tasks-parent
- 2.1.4
+ 2.1.5-SNAPSHOT
diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml
index 6bae5332..00826af4 100644
--- a/proto-google-cloud-tasks-v2beta2/pom.xml
+++ b/proto-google-cloud-tasks-v2beta2/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-tasks-v2beta2
- 0.91.4
+ 0.91.5-SNAPSHOT
proto-google-cloud-tasks-v2beta2
PROTO library for proto-google-cloud-tasks-v2beta2
com.google.cloud
google-cloud-tasks-parent
- 2.1.4
+ 2.1.5-SNAPSHOT
diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml
index 2419d53f..f7436280 100644
--- a/proto-google-cloud-tasks-v2beta3/pom.xml
+++ b/proto-google-cloud-tasks-v2beta3/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-tasks-v2beta3
- 0.91.4
+ 0.91.5-SNAPSHOT
proto-google-cloud-tasks-v2beta3
PROTO library for proto-google-cloud-tasks-v2beta3
com.google.cloud
google-cloud-tasks-parent
- 2.1.4
+ 2.1.5-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index 1613fadc..1d6c8e22 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,10 +1,10 @@
# Format:
# module:released-version:current-version
-google-cloud-tasks:2.1.4:2.1.4
-grpc-google-cloud-tasks-v2beta3:0.91.4:0.91.4
-grpc-google-cloud-tasks-v2beta2:0.91.4:0.91.4
-grpc-google-cloud-tasks-v2:2.1.4:2.1.4
-proto-google-cloud-tasks-v2beta3:0.91.4:0.91.4
-proto-google-cloud-tasks-v2beta2:0.91.4:0.91.4
-proto-google-cloud-tasks-v2:2.1.4:2.1.4
+google-cloud-tasks:2.1.4:2.1.5-SNAPSHOT
+grpc-google-cloud-tasks-v2beta3:0.91.4:0.91.5-SNAPSHOT
+grpc-google-cloud-tasks-v2beta2:0.91.4:0.91.5-SNAPSHOT
+grpc-google-cloud-tasks-v2:2.1.4:2.1.5-SNAPSHOT
+proto-google-cloud-tasks-v2beta3:0.91.4:0.91.5-SNAPSHOT
+proto-google-cloud-tasks-v2beta2:0.91.4:0.91.5-SNAPSHOT
+proto-google-cloud-tasks-v2:2.1.4:2.1.5-SNAPSHOT
From 7bff95555509cc4a2e5500cf9bae0345dcab1464 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Tue, 1 Mar 2022 02:04:11 +0100
Subject: [PATCH 02/11] build(deps): update dependency
org.apache.maven.plugins:maven-project-info-reports-plugin to v3.2.2 (#619)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.2.1` -> `3.2.2` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Configuration
📅 **Schedule**: At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, click this checkbox.
---
This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks).
---
README.md | 6 +++---
pom.xml | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 70530abc..fcdf6d9e 100644
--- a/README.md
+++ b/README.md
@@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
com.google.cloud
google-cloud-tasks
- 2.1.3
+ 2.1.4
```
If you are using Gradle without BOM, add this to your dependencies
```Groovy
-implementation 'com.google.cloud:google-cloud-tasks:2.1.3'
+implementation 'com.google.cloud:google-cloud-tasks:2.1.4'
```
If you are using SBT, add this to your dependencies
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.3"
+libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.4"
```
## Authentication
diff --git a/pom.xml b/pom.xml
index 5e39f0a9..fc4ac3da 100644
--- a/pom.xml
+++ b/pom.xml
@@ -144,7 +144,7 @@
org.apache.maven.plugins
maven-project-info-reports-plugin
- 3.2.1
+ 3.2.2
From 6444ff5950a22471b788c12976051ddb0fc04b59 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Tue, 1 Mar 2022 03:40:26 +0100
Subject: [PATCH 03/11] chore(deps): update dependency
com.google.cloud:google-cloud-tasks to v2.1.4 (#624)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.1.3` -> `2.1.4` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
googleapis/java-tasks
### [`v2.1.4`](https://togithub.com/googleapis/java-tasks/blob/HEAD/CHANGELOG.md#214-httpsgithubcomgoogleapisjava-taskscomparev213v214-2022-02-28)
[Compare Source](https://togithub.com/googleapis/java-tasks/compare/v2.1.3...v2.1.4)
---
### Configuration
📅 **Schedule**: At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, click this checkbox.
---
This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks).
---
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 bd1aa24a..46a34aca 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -29,7 +29,7 @@
com.google.cloud
google-cloud-tasks
- 2.1.3
+ 2.1.4
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 6269374b..872836ad 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-tasks
- 2.1.3
+ 2.1.4
From ec53481cc690561f4aa7ffd6307f66197d1239bc Mon Sep 17 00:00:00 2001
From: Tomo Suzuki
Date: Tue, 1 Mar 2022 15:54:20 -0500
Subject: [PATCH 04/11] docs(sample): add native-image sample (#621)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Relocating the sample from native-image-support to this repository
`mvn clean verify -DskipTests -P lint` passes.
Fixes # ☕️
If you write sample code, please follow the [samples format](
https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md).
---
README.md | 1 +
samples/native-image-sample/README.md | 119 ++++++++++++++
samples/native-image-sample/pom.xml | 150 ++++++++++++++++++
.../example/tasks/TasksSampleApplication.java | 85 ++++++++++
.../tasks/ITNativeImageTasksSample.java | 43 +++++
samples/pom.xml | 1 +
6 files changed, 399 insertions(+)
create mode 100644 samples/native-image-sample/README.md
create mode 100644 samples/native-image-sample/pom.xml
create mode 100644 samples/native-image-sample/src/main/java/com/example/tasks/TasksSampleApplication.java
create mode 100644 samples/native-image-sample/src/test/java/com/example/tasks/ITNativeImageTasksSample.java
diff --git a/README.md b/README.md
index fcdf6d9e..c387b3a5 100644
--- a/README.md
+++ b/README.md
@@ -76,6 +76,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-tasks/tree/ma
| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
+| Tasks Sample Application | [source code](https://github.com/googleapis/java-tasks/blob/main/samples/native-image-sample/src/main/java/com/example/tasks/TasksSampleApplication.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/native-image-sample/src/main/java/com/example/tasks/TasksSampleApplication.java) |
| Create Http Task | [source code](https://github.com/googleapis/java-tasks/blob/main/samples/snippets/src/main/java/com/example/task/CreateHttpTask.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/CreateHttpTask.java) |
| Create Http Task With Token | [source code](https://github.com/googleapis/java-tasks/blob/main/samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java) |
| Create Queue | [source code](https://github.com/googleapis/java-tasks/blob/main/samples/snippets/src/main/java/com/example/task/CreateQueue.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/CreateQueue.java) |
diff --git a/samples/native-image-sample/README.md b/samples/native-image-sample/README.md
new file mode 100644
index 00000000..acbbe7ff
--- /dev/null
+++ b/samples/native-image-sample/README.md
@@ -0,0 +1,119 @@
+# Cloud Tasks Sample Application with Native Image
+
+The Cloud Tasks sample application demonstrates some common operations with
+[Google Cloud Tasks](https://cloud.google.com/tasks) and is compatible with
+Native Image compilation.
+
+This application will create a new queue called `graal-test-queue` if it does
+not already exist.
+It will then submit a new task to this queue.
+
+## Setup Instructions
+
+1. Follow the [GCP Project and Native Image Setup Instructions](../../README.md).
+
+2. [Enable the Cloud Tasks APIs](https://console.cloud.google.com/apis/api/cloudtasks.googleapis.com).
+
+### Run with Native Image Compilation
+
+Navigate to this directory in a new terminal.
+
+1. Compile the application using the Native Image Compiler. This step may take a few minutes.
+
+ ```
+ $ mvn package -P native
+ ```
+
+ The project uses an environment variable `LOCATION_ID` to run the test.
+
+2. Run the application:
+
+ ```
+ $ LOCATION_ID=us-east1 ./target/tasks-sample
+ ```
+
+ The sample application uses an environment variable `LOCATION_ID`.
+
+3. The application runs through some basic Cloud Tasks operations (create queue, create task) and then prints some results of the operations.
+
+ ```
+ Test queue ready: name: "projects/xxxxxxxxxx/locations/us-central1/queues/graal-test-queue-4009"
+ rate_limits {
+ max_dispatches_per_second: 500.0
+ max_burst_size: 100
+ max_concurrent_dispatches: 1
+ }
+ retry_config {
+ max_attempts: 100
+ min_backoff {
+ nanos: 100000000
+ }
+ max_backoff {
+ seconds: 3600
+ }
+ max_doublings: 16
+ }
+ state: RUNNING
+
+ Created task: name: "projects/xxxxxxxxxx/locations/us-central1/queues/graal-test-queue-4009/tasks/5886258204485021611"
+ http_request {
+ url: "https://google.com/"
+ http_method: GET
+ headers {
+ key: "User-Agent"
+ value: "Google-Cloud-Tasks"
+ }
+ }
+ schedule_time {
+ seconds: 1613189391
+ nanos: 486293000
+ }
+ create_time {
+ seconds: 1613189391
+ }
+ dispatch_deadline {
+ seconds: 600
+ }
+ view: BASIC
+
+ Queue purged
+ Queue deleted
+ ```
+
+4. Run the test in the project in the native-image mode
+
+ ```
+ $ LOCATION_ID=us-east1 mvn test -P native
+ ...
+ [INFO] -------------------------------------------------------
+ [INFO] T E S T S
+ [INFO] -------------------------------------------------------
+ [INFO] Running com.example.tasks.ITNativeImageTasksSample
+ ...
+ [INFO] --- native-maven-plugin:0.9.9:test (test-native) @ native-image-sample ---
+ [INFO] ====================
+ [INFO] Initializing project: native-image-sample
+ ...
+ com.example.tasks.ITNativeImageTasksSample > testRunSampleApplication SUCCESSFUL
+
+
+ Test run finished after 1025 ms
+ [ 3 containers found ]
+ [ 0 containers skipped ]
+ [ 3 containers started ]
+ [ 0 containers aborted ]
+ [ 3 containers successful ]
+ [ 0 containers failed ]
+ [ 1 tests found ]
+ [ 0 tests skipped ]
+ [ 1 tests started ]
+ [ 0 tests aborted ]
+ [ 1 tests successful ]
+ [ 0 tests failed ]
+
+ [INFO] ------------------------------------------------------------------------
+ [INFO] BUILD SUCCESS
+ [INFO] ------------------------------------------------------------------------
+ [INFO] Total time: 02:27 min
+ ...
+ ```
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
new file mode 100644
index 00000000..42d75d30
--- /dev/null
+++ b/samples/native-image-sample/pom.xml
@@ -0,0 +1,150 @@
+
+
+ 4.0.0
+ com.example.tasks
+ native-image-sample
+ Native Image Sample
+
+
+
+ com.google.cloud.samples
+ shared-configuration
+ 1.2.0
+
+
+
+
+ 1.8
+ 1.8
+ UTF-8
+
+
+
+
+
+ com.google.cloud
+ libraries-bom
+ 24.2.0
+ pom
+ import
+
+
+
+
+
+
+ com.google.cloud
+ google-cloud-core
+
+
+ com.google.cloud
+ google-cloud-tasks
+
+
+ junit
+ junit
+ 4.13.2
+ test
+
+
+ com.google.truth
+ truth
+ 1.1.3
+ test
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+
+
+
+ com.example.TasksSampleApplication
+
+
+
+
+
+
+
+
+
+ native
+
+
+
+ com.google.cloud
+ native-image-support
+ 0.10.0
+
+
+ org.junit.vintage
+ junit-vintage-engine
+ 5.8.2
+
+
+ org.graalvm.buildtools
+ junit-platform-native
+ 0.9.9
+ test
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+ 2.22.2
+
+
+ **/IT*
+
+
+
+
+ org.graalvm.buildtools
+ native-maven-plugin
+ 0.9.9
+ true
+
+ com.example.tasks.TasksSampleApplication
+
+ --no-fallback
+ --no-server
+ --initialize-at-build-time
+ --features=com.google.cloud.nativeimage.features.ProtobufMessageFeature
+
+
+
+
+ build-native
+
+ build
+ test
+
+ package
+
+
+ test-native
+
+ test
+
+ test
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/samples/native-image-sample/src/main/java/com/example/tasks/TasksSampleApplication.java b/samples/native-image-sample/src/main/java/com/example/tasks/TasksSampleApplication.java
new file mode 100644
index 00000000..de736aa8
--- /dev/null
+++ b/samples/native-image-sample/src/main/java/com/example/tasks/TasksSampleApplication.java
@@ -0,0 +1,85 @@
+/*
+ * Copyright 2022 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.
+ */
+
+package com.example.tasks;
+
+import com.google.cloud.ServiceOptions;
+import com.google.cloud.tasks.v2.CloudTasksClient;
+import com.google.cloud.tasks.v2.CreateQueueRequest;
+import com.google.cloud.tasks.v2.HttpMethod;
+import com.google.cloud.tasks.v2.HttpRequest;
+import com.google.cloud.tasks.v2.LocationName;
+import com.google.cloud.tasks.v2.Queue;
+import com.google.cloud.tasks.v2.QueueName;
+import com.google.cloud.tasks.v2.RateLimits;
+import com.google.cloud.tasks.v2.Task;
+import java.io.IOException;
+import java.util.UUID;
+
+/** Sample application demonstrating Native Image compatibility with Google Cloud Tasks APIs. */
+public class TasksSampleApplication {
+ /**
+ * Queue name randomness added to avoid FAILED_PRECONDITION: The queue cannot be created because a
+ * queue with this name existed too recently.
+ */
+ private static final String GRAALVM_TEST_QUEUE_NAME = "graal-test-queue-";
+
+ private static final String LOCATION_ID = System.getenv("LOCATION_ID");
+
+ /** Runs the Cloud Tasks sample application. */
+ public static void main(String[] args) throws IOException {
+ String projectId = ServiceOptions.getDefaultProjectId();
+ LocationName parent = LocationName.of(projectId, LOCATION_ID);
+ QueueName queueName =
+ QueueName.of(
+ parent.getProject(),
+ parent.getLocation(),
+ GRAALVM_TEST_QUEUE_NAME + UUID.randomUUID().toString());
+
+ try (CloudTasksClient client = CloudTasksClient.create()) {
+ // Create queue
+ Queue queue =
+ Queue.newBuilder()
+ .setName(queueName.toString())
+ .setRateLimits(RateLimits.newBuilder().setMaxConcurrentDispatches(1).build())
+ .build();
+
+ CreateQueueRequest createQueueRequest =
+ CreateQueueRequest.newBuilder().setParent(parent.toString()).setQueue(queue).build();
+
+ Queue createdQueue = client.createQueue(createQueueRequest);
+ System.out.println("Test queue ready: " + createdQueue);
+
+ // Create task
+ HttpRequest taskTarget =
+ HttpRequest.newBuilder()
+ .setUrl("https://google.com")
+ .setHttpMethod(HttpMethod.GET)
+ .build();
+
+ Task taskRequest = Task.newBuilder().setHttpRequest(taskTarget).build();
+ Task task = client.createTask(queueName, taskRequest);
+ System.out.println("Created task: " + task);
+
+ // Cleanup
+ client.purgeQueue(queueName);
+ System.out.println("Queue purged");
+
+ client.deleteQueue(queueName);
+ System.out.println("Queue deleted");
+ }
+ }
+}
diff --git a/samples/native-image-sample/src/test/java/com/example/tasks/ITNativeImageTasksSample.java b/samples/native-image-sample/src/test/java/com/example/tasks/ITNativeImageTasksSample.java
new file mode 100644
index 00000000..70e91ffa
--- /dev/null
+++ b/samples/native-image-sample/src/test/java/com/example/tasks/ITNativeImageTasksSample.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 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
+ *
+ * https://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.
+ */
+
+package com.example.tasks;
+
+import static com.google.common.truth.Truth.assertThat;
+
+import java.io.ByteArrayOutputStream;
+import java.io.PrintStream;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ITNativeImageTasksSample {
+ private ByteArrayOutputStream bout;
+
+ @Before
+ public void setUp() throws Exception {
+ bout = new ByteArrayOutputStream();
+ System.setOut(new PrintStream(bout));
+ }
+
+ @Test
+ public void testRunSampleApplication() throws Exception {
+ TasksSampleApplication.main(new String[] {});
+ String output = bout.toString();
+ assertThat(output).contains("Test queue ready");
+ assertThat(output).contains("Queue purged");
+ assertThat(output).contains("Queue deleted");
+ }
+}
diff --git a/samples/pom.xml b/samples/pom.xml
index 92ea1f87..87ddc149 100644
--- a/samples/pom.xml
+++ b/samples/pom.xml
@@ -31,6 +31,7 @@
install-without-bom
snapshot
snippets
+ native-image-sample
From fb1ef621fe3c14a875de8dd25bd0ac702bb2e996 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Wed, 2 Mar 2022 19:08:24 +0100
Subject: [PATCH 05/11] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v2.8.0 (#631)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.7.0` -> `2.8.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
googleapis/java-shared-dependencies
### [`v2.8.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#280-httpsgithubcomgoogleapisjava-shared-dependenciescomparev270v280-2022-03-02)
[Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.7.0...v2.8.0)
##### Dependencies
- update dependency com.google.api-client:google-api-client-bom to v1.33.2 ([#602](https://togithub.com/googleapis/java-shared-dependencies/issues/602)) ([85b132f](https://togithub.com/googleapis/java-shared-dependencies/commit/85b132f5830772646025b6a9fbbb970a941b86b5))
- update dependency com.google.api:api-common to v2.1.4 ([#605](https://togithub.com/googleapis/java-shared-dependencies/issues/605)) ([ca7d49a](https://togithub.com/googleapis/java-shared-dependencies/commit/ca7d49aee26b6d90abd2afd61c20861d2307fe9c))
- update dependency com.google.auth:google-auth-library-bom to v1.5.3 ([#614](https://togithub.com/googleapis/java-shared-dependencies/issues/614)) ([e6413f3](https://togithub.com/googleapis/java-shared-dependencies/commit/e6413f3b1be78473ace7085c344eda2d78cdf01a))
- update dependency com.google.cloud:google-cloud-core to v2.5.6 ([#621](https://togithub.com/googleapis/java-shared-dependencies/issues/621)) ([3d5669f](https://togithub.com/googleapis/java-shared-dependencies/commit/3d5669f215689dd2df71200ffe37d5a9d385cda8))
- update dependency com.google.code.gson:gson to v2.9.0 ([#611](https://togithub.com/googleapis/java-shared-dependencies/issues/611)) ([f59c28d](https://togithub.com/googleapis/java-shared-dependencies/commit/f59c28d8cd30ada1237f7722135ba148dce6315e))
- update dependency com.google.http-client:google-http-client-bom to v1.41.4 ([#608](https://togithub.com/googleapis/java-shared-dependencies/issues/608)) ([f9a4f23](https://togithub.com/googleapis/java-shared-dependencies/commit/f9a4f23d3a32148ac59e53eaae6558ccbceca12c))
- update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.1 ([#606](https://togithub.com/googleapis/java-shared-dependencies/issues/606)) ([3882494](https://togithub.com/googleapis/java-shared-dependencies/commit/3882494770d48fcc02ed19088aa06612a8e440eb))
- update dependency com.google.protobuf:protobuf-bom to v3.19.4 ([#593](https://togithub.com/googleapis/java-shared-dependencies/issues/593)) ([1e155bf](https://togithub.com/googleapis/java-shared-dependencies/commit/1e155bfc957bbb7e25d2e0994cdecaa81843bdc5))
- update dependency io.grpc:grpc-bom to v1.44.1 ([#613](https://togithub.com/googleapis/java-shared-dependencies/issues/613)) ([3038a2c](https://togithub.com/googleapis/java-shared-dependencies/commit/3038a2c86cd20c91b65f2d7926eeb739147a68db))
- update dependency junit:junit to v4.13.2 ([#607](https://togithub.com/googleapis/java-shared-dependencies/issues/607)) ([987e617](https://togithub.com/googleapis/java-shared-dependencies/commit/987e61796c7a093e005fe8832cf39275c391b2c1))
- update dependency org.checkerframework:checker-qual to v3.21.3 ([#596](https://togithub.com/googleapis/java-shared-dependencies/issues/596)) ([ac5083c](https://togithub.com/googleapis/java-shared-dependencies/commit/ac5083cd010924dc128f041c2cdbab20166a6bf0))
- update gax.version to v2.12.2 ([#592](https://togithub.com/googleapis/java-shared-dependencies/issues/592)) ([713ff8d](https://togithub.com/googleapis/java-shared-dependencies/commit/713ff8dd94f939c417524616bc47c771a3fbe0cf))
- update google.common-protos.version to v2.7.4 ([#603](https://togithub.com/googleapis/java-shared-dependencies/issues/603)) ([bb9b4c7](https://togithub.com/googleapis/java-shared-dependencies/commit/bb9b4c7e39552cc73b3b9d4c826b26e8cb74459f))
- update google.core.version ([#599](https://togithub.com/googleapis/java-shared-dependencies/issues/599)) ([327d0df](https://togithub.com/googleapis/java-shared-dependencies/commit/327d0df9b57203c0d4f426de0380770d3d7910d6))
- update iam.version to v1.2.6 ([#598](https://togithub.com/googleapis/java-shared-dependencies/issues/598)) ([2801439](https://togithub.com/googleapis/java-shared-dependencies/commit/280143964c7c3b93a8d7f67215ba2cc74ffce761))
---
### Configuration
📅 **Schedule**: At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, click this checkbox.
---
This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index fc4ac3da..538ccf7e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,7 +97,7 @@
com.google.cloud
google-cloud-shared-dependencies
- 2.7.0
+ 2.8.0
pom
import
From 457b697a3d9029bd4f33b258ea98918bb38cc1b2 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Wed, 2 Mar 2022 20:16:23 +0100
Subject: [PATCH 06/11] deps: update dependency
com.google.cloud:native-image-support to v0.12.6 (#628)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:native-image-support](https://togithub.com/googleapis/java-core) | `0.10.0` -> `0.12.6` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Configuration
📅 **Schedule**: At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, click this checkbox.
---
This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks).
---
samples/native-image-sample/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index 42d75d30..90b6b650 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -84,7 +84,7 @@
com.google.cloud
native-image-support
- 0.10.0
+ 0.12.6
org.junit.vintage
From 1f08e4a446881032d3c40ee31986fa748dbc1914 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Thu, 3 Mar 2022 19:48:55 +0100
Subject: [PATCH 07/11] deps: update dependency
org.graalvm.buildtools:native-maven-plugin to v0.9.10 (#627)
---
samples/native-image-sample/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index 90b6b650..328190a4 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -114,7 +114,7 @@
org.graalvm.buildtools
native-maven-plugin
- 0.9.9
+ 0.9.10
true
com.example.tasks.TasksSampleApplication
From 808c56ef98ecdf7a57cbf31234ef4c6b1c93c609 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Thu, 3 Mar 2022 19:49:07 +0100
Subject: [PATCH 08/11] deps: update dependency
org.graalvm.buildtools:junit-platform-native to v0.9.10 (#626)
---
samples/native-image-sample/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index 328190a4..cc0f9f4c 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -94,7 +94,7 @@
org.graalvm.buildtools
junit-platform-native
- 0.9.9
+ 0.9.10
test
From 6857b4eaf62904e17d14dc7c71daf1297af94395 Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Thu, 3 Mar 2022 18:54:42 +0000
Subject: [PATCH 09/11] chore: fix license header in build.bat (#1363) (#633)
* chore: fix license header in build.bat
* chore: add disctribution field for setup-java action
Source-Link: https://github.com/googleapis/synthtool/commit/4fea5f40a9075f3ba205ede0b453010cf080e194
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:df8d7b2cc0dbc65871e7edd86601901a0612b272fa3f7f0eb590c5c53aa5f92e
---
.github/.OwlBot.lock.yaml | 2 +-
.github/workflows/approve-readme.yaml | 2 +-
.github/workflows/auto-release.yaml | 2 +-
.github/workflows/ci.yaml | 20 +++++++++---------
.github/workflows/samples.yaml | 5 +++--
.kokoro/build.bat | 30 +++++++++++++--------------
6 files changed, 31 insertions(+), 30 deletions(-)
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index 9351fdfb..3473042c 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,4 +13,4 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
- digest: sha256:387835a1375a0049ec44e02542c844302854c732d8291bdf8e472c0ff70a8f67
+ digest: sha256:df8d7b2cc0dbc65871e7edd86601901a0612b272fa3f7f0eb590c5c53aa5f92e
diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml
index 1bb18232..f5fc7d51 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@v5
+ - uses: actions/github-script@v6
with:
github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
script: |
diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml
index 18e23230..7a106d00 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@v5
+ - uses: actions/github-script@v6
with:
github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
debug: true
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 6b5e56aa..83ef7f9c 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -27,8 +27,8 @@ jobs:
matrix:
java: [8, 11, 17]
steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-java@v2
+ - uses: actions/checkout@v3
+ - uses: actions/setup-java@v3
with:
distribution: zulu
java-version: ${{matrix.java}}
@@ -39,8 +39,8 @@ jobs:
windows:
runs-on: windows-latest
steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-java@v2
+ - uses: actions/checkout@v3
+ - uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 8
@@ -54,8 +54,8 @@ jobs:
matrix:
java: [8, 11, 17]
steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-java@v2
+ - uses: actions/checkout@v3
+ - uses: actions/setup-java@v3
with:
distribution: zulu
java-version: ${{matrix.java}}
@@ -64,8 +64,8 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-java@v2
+ - uses: actions/checkout@v3
+ - uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11
@@ -76,8 +76,8 @@ jobs:
clirr:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-java@v2
+ - uses: actions/checkout@v3
+ - uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 8
diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml
index d5d964df..912ed8b2 100644
--- a/.github/workflows/samples.yaml
+++ b/.github/workflows/samples.yaml
@@ -20,9 +20,10 @@ jobs:
checkstyle:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-java@v1
+ - uses: actions/checkout@v3
+ - uses: actions/setup-java@v3
with:
+ distribution: zulu
java-version: 8
- name: Run checkstyle
run: mvn -P lint --quiet --batch-mode checkstyle:check
diff --git a/.kokoro/build.bat b/.kokoro/build.bat
index cc602c9e..067cf4a4 100644
--- a/.kokoro/build.bat
+++ b/.kokoro/build.bat
@@ -1,18 +1,18 @@
+:: Copyright 2022 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.
:: See documentation in type-shell-output.bat
-# Copyright 2022 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.
"C:\Program Files\Git\bin\bash.exe" %~dp0build.sh
From 298ed80551291894bbb29c9b4fc6704c3a5ce5ec Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Thu, 3 Mar 2022 19:56:37 +0100
Subject: [PATCH 10/11] chore(deps): update dependency
com.google.cloud:libraries-bom to v24.4.0 (#632)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.3.0` -> `24.4.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
| [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.2.0` -> `24.4.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Configuration
📅 **Schedule**: At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.
---
- [ ] If you want to rebase/retry this PR, click this checkbox.
---
This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks).
---
samples/native-image-sample/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index cc0f9f4c..dbadb0b8 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -29,7 +29,7 @@
com.google.cloud
libraries-bom
- 24.2.0
+ 24.4.0
pom
import
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 01715b0e..b8d8ce12 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -30,7 +30,7 @@
com.google.cloud
libraries-bom
- 24.3.0
+ 24.4.0
pom
import
From 5438edb0cc3acdddb16c20c982231d702c492091 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Thu, 3 Mar 2022 14:33:56 -0800
Subject: [PATCH 11/11] chore(main): release 2.1.5 (#625)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
---
CHANGELOG.md | 15 +++++++++++++++
google-cloud-tasks-bom/pom.xml | 16 ++++++++--------
google-cloud-tasks/pom.xml | 4 ++--
grpc-google-cloud-tasks-v2/pom.xml | 4 ++--
grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++--
grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++--
pom.xml | 16 ++++++++--------
proto-google-cloud-tasks-v2/pom.xml | 4 ++--
proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++--
proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++--
versions.txt | 14 +++++++-------
11 files changed, 52 insertions(+), 37 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 62e9e3db..783aace3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,20 @@
# Changelog
+### [2.1.5](https://github.com/googleapis/java-tasks/compare/v2.1.4...v2.1.5) (2022-03-03)
+
+
+### Documentation
+
+* **sample:** add native-image sample ([#621](https://github.com/googleapis/java-tasks/issues/621)) ([ec53481](https://github.com/googleapis/java-tasks/commit/ec53481cc690561f4aa7ffd6307f66197d1239bc))
+
+
+### Dependencies
+
+* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 ([#631](https://github.com/googleapis/java-tasks/issues/631)) ([fb1ef62](https://github.com/googleapis/java-tasks/commit/fb1ef621fe3c14a875de8dd25bd0ac702bb2e996))
+* update dependency com.google.cloud:native-image-support to v0.12.6 ([#628](https://github.com/googleapis/java-tasks/issues/628)) ([457b697](https://github.com/googleapis/java-tasks/commit/457b697a3d9029bd4f33b258ea98918bb38cc1b2))
+* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.10 ([#626](https://github.com/googleapis/java-tasks/issues/626)) ([808c56e](https://github.com/googleapis/java-tasks/commit/808c56ef98ecdf7a57cbf31234ef4c6b1c93c609))
+* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.10 ([#627](https://github.com/googleapis/java-tasks/issues/627)) ([1f08e4a](https://github.com/googleapis/java-tasks/commit/1f08e4a446881032d3c40ee31986fa748dbc1914))
+
### [2.1.4](https://github.com/googleapis/java-tasks/compare/v2.1.3...v2.1.4) (2022-02-28)
diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml
index c092a79c..b2ba3877 100644
--- a/google-cloud-tasks-bom/pom.xml
+++ b/google-cloud-tasks-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-tasks-bom
- 2.1.5-SNAPSHOT
+ 2.1.5
pom
com.google.cloud
@@ -52,37 +52,37 @@
com.google.cloud
google-cloud-tasks
- 2.1.5-SNAPSHOT
+ 2.1.5
com.google.api.grpc
grpc-google-cloud-tasks-v2beta3
- 0.91.5-SNAPSHOT
+ 0.91.5
com.google.api.grpc
grpc-google-cloud-tasks-v2beta2
- 0.91.5-SNAPSHOT
+ 0.91.5
com.google.api.grpc
grpc-google-cloud-tasks-v2
- 2.1.5-SNAPSHOT
+ 2.1.5
com.google.api.grpc
proto-google-cloud-tasks-v2beta3
- 0.91.5-SNAPSHOT
+ 0.91.5
com.google.api.grpc
proto-google-cloud-tasks-v2beta2
- 0.91.5-SNAPSHOT
+ 0.91.5
com.google.api.grpc
proto-google-cloud-tasks-v2
- 2.1.5-SNAPSHOT
+ 2.1.5
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml
index 776c3cfb..83a4c078 100644
--- a/google-cloud-tasks/pom.xml
+++ b/google-cloud-tasks/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-tasks
- 2.1.5-SNAPSHOT
+ 2.1.5
jar
Google Cloud Tasks
https://github.com/googleapis/java-tasks
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-tasks-parent
- 2.1.5-SNAPSHOT
+ 2.1.5
google-cloud-tasks
diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml
index b7ea868e..44c89a8b 100644
--- a/grpc-google-cloud-tasks-v2/pom.xml
+++ b/grpc-google-cloud-tasks-v2/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-tasks-v2
- 2.1.5-SNAPSHOT
+ 2.1.5
grpc-google-cloud-tasks-v2
GRPC library for grpc-google-cloud-tasks-v2
com.google.cloud
google-cloud-tasks-parent
- 2.1.5-SNAPSHOT
+ 2.1.5
diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml
index 95a34be5..a8efd998 100644
--- a/grpc-google-cloud-tasks-v2beta2/pom.xml
+++ b/grpc-google-cloud-tasks-v2beta2/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-tasks-v2beta2
- 0.91.5-SNAPSHOT
+ 0.91.5
grpc-google-cloud-tasks-v2beta2
GRPC library for grpc-google-cloud-tasks-v2beta2
com.google.cloud
google-cloud-tasks-parent
- 2.1.5-SNAPSHOT
+ 2.1.5
diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml
index 0ec962e9..2f798a2d 100644
--- a/grpc-google-cloud-tasks-v2beta3/pom.xml
+++ b/grpc-google-cloud-tasks-v2beta3/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-tasks-v2beta3
- 0.91.5-SNAPSHOT
+ 0.91.5
grpc-google-cloud-tasks-v2beta3
GRPC library for grpc-google-cloud-tasks-v2beta3
com.google.cloud
google-cloud-tasks-parent
- 2.1.5-SNAPSHOT
+ 2.1.5
diff --git a/pom.xml b/pom.xml
index 538ccf7e..66209592 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-tasks-parent
pom
- 2.1.5-SNAPSHOT
+ 2.1.5
Google Cloud Tasks Parent
https://github.com/googleapis/java-tasks
@@ -61,37 +61,37 @@
com.google.api.grpc
proto-google-cloud-tasks-v2beta3
- 0.91.5-SNAPSHOT
+ 0.91.5
com.google.api.grpc
proto-google-cloud-tasks-v2beta2
- 0.91.5-SNAPSHOT
+ 0.91.5
com.google.api.grpc
proto-google-cloud-tasks-v2
- 2.1.5-SNAPSHOT
+ 2.1.5
com.google.api.grpc
grpc-google-cloud-tasks-v2beta3
- 0.91.5-SNAPSHOT
+ 0.91.5
com.google.api.grpc
grpc-google-cloud-tasks-v2beta2
- 0.91.5-SNAPSHOT
+ 0.91.5
com.google.api.grpc
grpc-google-cloud-tasks-v2
- 2.1.5-SNAPSHOT
+ 2.1.5
com.google.cloud
google-cloud-tasks
- 2.1.5-SNAPSHOT
+ 2.1.5
diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml
index 78e2ed01..beb41c39 100644
--- a/proto-google-cloud-tasks-v2/pom.xml
+++ b/proto-google-cloud-tasks-v2/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-tasks-v2
- 2.1.5-SNAPSHOT
+ 2.1.5
proto-google-cloud-tasks-v2
PROTO library for proto-google-cloud-tasks-v2
com.google.cloud
google-cloud-tasks-parent
- 2.1.5-SNAPSHOT
+ 2.1.5
diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml
index 00826af4..b4f9997f 100644
--- a/proto-google-cloud-tasks-v2beta2/pom.xml
+++ b/proto-google-cloud-tasks-v2beta2/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-tasks-v2beta2
- 0.91.5-SNAPSHOT
+ 0.91.5
proto-google-cloud-tasks-v2beta2
PROTO library for proto-google-cloud-tasks-v2beta2
com.google.cloud
google-cloud-tasks-parent
- 2.1.5-SNAPSHOT
+ 2.1.5
diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml
index f7436280..e2f23b6d 100644
--- a/proto-google-cloud-tasks-v2beta3/pom.xml
+++ b/proto-google-cloud-tasks-v2beta3/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-tasks-v2beta3
- 0.91.5-SNAPSHOT
+ 0.91.5
proto-google-cloud-tasks-v2beta3
PROTO library for proto-google-cloud-tasks-v2beta3
com.google.cloud
google-cloud-tasks-parent
- 2.1.5-SNAPSHOT
+ 2.1.5
diff --git a/versions.txt b/versions.txt
index 1d6c8e22..aacfbac5 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,10 +1,10 @@
# Format:
# module:released-version:current-version
-google-cloud-tasks:2.1.4:2.1.5-SNAPSHOT
-grpc-google-cloud-tasks-v2beta3:0.91.4:0.91.5-SNAPSHOT
-grpc-google-cloud-tasks-v2beta2:0.91.4:0.91.5-SNAPSHOT
-grpc-google-cloud-tasks-v2:2.1.4:2.1.5-SNAPSHOT
-proto-google-cloud-tasks-v2beta3:0.91.4:0.91.5-SNAPSHOT
-proto-google-cloud-tasks-v2beta2:0.91.4:0.91.5-SNAPSHOT
-proto-google-cloud-tasks-v2:2.1.4:2.1.5-SNAPSHOT
+google-cloud-tasks:2.1.5:2.1.5
+grpc-google-cloud-tasks-v2beta3:0.91.5:0.91.5
+grpc-google-cloud-tasks-v2beta2:0.91.5:0.91.5
+grpc-google-cloud-tasks-v2:2.1.5:2.1.5
+proto-google-cloud-tasks-v2beta3:0.91.5:0.91.5
+proto-google-cloud-tasks-v2beta2:0.91.5:0.91.5
+proto-google-cloud-tasks-v2:2.1.5:2.1.5