Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

docs(sample): modify README instructions for Native Image sample #666

Merged
merged 3 commits into from
Apr 1, 2022

Conversation

mpeddada1
Copy link
Contributor

@mpeddada1 mpeddada1 commented Mar 31, 2022

Adds instructions to set the environment variable before the native image is built. The sample processes and stores LOCATION_ID at build time. Setting the env variable after calling mvn package -Pnative results in:

$ ./target/native-image-sample
Exception in thread "main" java.lang.NullPointerException
	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:889)
	at com.google.cloud.tasks.v2.LocationName.<init>(LocationName.java:46)
	at com.google.cloud.tasks.v2.LocationName.<init>(LocationName.java:31)
	at com.google.cloud.tasks.v2.LocationName$Builder.build(LocationName.java:189)
	at com.google.cloud.tasks.v2.LocationName.of(LocationName.java:66)
	at com.example.tasks.TasksSampleApplication.main(TasksSampleApplication.java:45)
@product-auto-label product-auto-label bot added api: cloudtasks Issues related to the googleapis/java-tasks API. samples Issues that are directly related to samples. labels Mar 31, 2022
@mpeddada1 mpeddada1 requested a review from suztomo March 31, 2022 21:09
@mpeddada1 mpeddada1 marked this pull request as ready for review March 31, 2022 21:10
@mpeddada1 mpeddada1 requested review from a team as code owners March 31, 2022 21:10
@averikitsch averikitsch merged commit 1f4b309 into main Apr 1, 2022
@averikitsch averikitsch deleted the sample-readme branch April 1, 2022 19:03
gcf-merge-on-green bot pushed a commit that referenced this pull request Apr 19, 2022
🤖 I have created a release *beep* *boop*
---


### [2.1.11](v2.1.10...v2.1.11) (2022-04-15)


### Documentation

* **sample:** modify README instructions for Native Image sample ([#666](#666)) ([1f4b309](1f4b309))


### Dependencies

* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#670](#670)) ([0a48657](0a48657))
* update dependency com.google.cloud:native-image-support to v0.13.1 ([#671](#671)) ([c4e5766](c4e5766))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: cloudtasks Issues related to the googleapis/java-tasks API. samples Issues that are directly related to samples.
2 participants