Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

docs(sample): use Java 8 for native image sample - #1060

Merged
mpeddada1 merged 1 commit into
mainfrom
native-sample
Mar 18, 2022
Merged

docs(sample): use Java 8 for native image sample#1060
mpeddada1 merged 1 commit into
mainfrom
native-sample

Conversation

@mpeddada1

Copy link
Copy Markdown
Contributor

The native image sample is failing during the nightly build with the following error:

ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] javac: invalid target release: 11
Usage: javac <options> <source files>
use -help for a list of possible options

This is because the Kokoro job uses Java 8. Setting the compiler Java version of the sample to Java 8 should be able to address this issue.

@mpeddada1
mpeddada1 requested review from a team and anguillanneuf March 18, 2022 17:45
@product-auto-label product-auto-label Bot added api: pubsub Issues related to the googleapis/java-pubsub API. samples Issues that are directly related to samples. labels Mar 18, 2022

@anguillanneuf anguillanneuf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@mpeddada1
mpeddada1 merged commit 2d5c010 into main Mar 18, 2022
@mpeddada1
mpeddada1 deleted the native-sample branch March 18, 2022 18:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: pubsub Issues related to the googleapis/java-pubsub API. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants