Skip to content

Commit e8e29de

Browse files
committed
Sync documentation of main branch
1 parent 3035b23 commit e8e29de

File tree

7 files changed

+33
-17
lines changed

7 files changed

+33
-17
lines changed

_versions/main/guides/funqy-gcp-functions.adoc

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ You will have a single JAR inside the `target/deployment` repository that contai
147147
Then you will be able to use `gcloud` to deploy your function to Google Cloud.
148148
The `gcloud` command will be different depending on which event triggers your function.
149149

150-
NOTE: We will use the Java 17 runtime but you can switch to the Java 21 runtime by using `--runtime=java21` instead of `--runtime=java17` on the deploy commands.
150+
NOTE: We will use the Java 21 runtime, but you can switch to the Java 17 runtime by using `--runtime=java17` instead of `--runtime=java21` on the deploy commands.
151151

152152
[WARNING]
153153
====
@@ -168,7 +168,7 @@ Use this command to deploy to Google Cloud Functions:
168168
----
169169
gcloud functions deploy quarkus-example-funky-pubsub \
170170
--entry-point=io.quarkus.funqy.gcp.functions.FunqyBackgroundFunction \
171-
--runtime=java17 --trigger-resource hello_topic --trigger-event google.pubsub.topic.publish \
171+
--runtime=java21 --trigger-resource hello_topic --trigger-event google.pubsub.topic.publish \
172172
--source=target/deployment
173173
----
174174

@@ -205,7 +205,7 @@ Then, use this command to deploy to Google Cloud Functions:
205205
----
206206
gcloud functions deploy quarkus-example-funky-storage \
207207
--entry-point=io.quarkus.funqy.gcp.functions.FunqyBackgroundFunction \
208-
--runtime=java17 --trigger-resource quarkus-hello --trigger-event google.storage.object.finalize \
208+
--runtime=java21 --trigger-resource quarkus-hello --trigger-event google.storage.object.finalize \
209209
--source=target/deployment
210210
----
211211

@@ -246,7 +246,7 @@ Then, use this command to deploy to Google Cloud Functions:
246246
----
247247
gcloud functions deploy quarkus-example-cloud-event --gen2 \
248248
--entry-point=io.quarkus.funqy.gcp.functions.FunqyCloudEventsFunction \
249-
--runtime=java17 --trigger-bucket=example-cloud-event --source=target/deployment
249+
--runtime=java21 --trigger-bucket=example-cloud-event --source=target/deployment
250250
----
251251

252252
[IMPORTANT]
@@ -371,7 +371,7 @@ This will call your cloud events function with an event on the `"MY_FILE.txt` fi
371371

372372
Quarkus provides built-in support for testing your Funqy Google Cloud functions via the `quarkus-test-google-cloud-functions` dependency.
373373

374-
To use it, you must add the following test dependency in your `pom.xml`.
374+
To use it, you must add the following test dependencies in your `pom.xml`.
375375

376376
[source,xml]
377377
----
@@ -380,6 +380,11 @@ To use it, you must add the following test dependency in your `pom.xml`.
380380
<artifactId>quarkus-test-google-cloud-functions</artifactId>
381381
<scope>test</scope>
382382
</dependency>
383+
<dependency>
384+
<groupId>io.rest-assured</groupId>
385+
<artifactId>rest-assured</artifactId>
386+
<scope>test</scope>
387+
</dependency>
383388
----
384389

385390
This extension provides a `@WithFunction` annotation that can be used to annotate `@QuarkusTest` test cases to start a Cloud Function invoker before you test cases and stop it at the end.

_versions/main/guides/gcp-functions-http.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,13 @@ The result of the previous command is a single JAR file inside the `target/deplo
162162

163163
Then you will be able to use `gcloud` to deploy your function to Google Cloud.
164164

165-
NOTE: We will use the Java 17 runtime but you can switch to the Java 21 runtime by using `--runtime=java21` instead of `--runtime=java17` on the deploy commands.
165+
NOTE: We will use the Java 21 runtime, but you can switch to the Java 17 runtime by using `--runtime=java17` instead of `--runtime=java21` on the deploy commands.
166166

167167
[source,bash]
168168
----
169169
gcloud functions deploy quarkus-example-http \
170170
--entry-point=io.quarkus.gcp.functions.http.QuarkusHttpFunction \
171-
--runtime=java17 --trigger-http --allow-unauthenticated --source=target/deployment
171+
--runtime=java21 --trigger-http --allow-unauthenticated --source=target/deployment
172172
----
173173

174174
[IMPORTANT]

_versions/main/guides/gcp-functions.adoc

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ The result of the previous command is a single JAR file inside the `target/deplo
242242
Then you will be able to use `gcloud` to deploy your function to Google Cloud.
243243
The `gcloud` command will be different depending on which event triggers your function.
244244

245-
NOTE: We will use the Java 17 runtime but you can switch to the Java 21 runtime by using `--runtime=java21` instead of `--runtime=java17` on the deploy commands.
245+
NOTE: We will use the Java 21 runtime but you can switch to the Java 17 runtime by using `--runtime=java17` instead of `--runtime=java21` on the deploy commands.
246246

247247
[WARNING]
248248
====
@@ -262,7 +262,7 @@ This is an example command to deploy your `HttpFunction` to Google Cloud:
262262
----
263263
gcloud functions deploy quarkus-example-http \
264264
--entry-point=io.quarkus.gcp.functions.QuarkusHttpFunction \
265-
--runtime=java17 --trigger-http --allow-unauthenticated --source=target/deployment
265+
--runtime=java21 --trigger-http --allow-unauthenticated --source=target/deployment
266266
----
267267

268268
[IMPORTANT]
@@ -289,7 +289,7 @@ it needs to use `--trigger-event google.storage.object.finalize` and the `--trig
289289
gcloud functions deploy quarkus-example-storage \
290290
--entry-point=io.quarkus.gcp.functions.QuarkusBackgroundFunction \
291291
--trigger-resource quarkus-hello --trigger-event google.storage.object.finalize \
292-
--runtime=java17 --source=target/deployment
292+
--runtime=java21 --source=target/deployment
293293
----
294294

295295
[IMPORTANT]
@@ -315,7 +315,7 @@ it needs to use `--trigger-event google.pubsub.topic.publish` and the `--trigger
315315
----
316316
gcloud functions deploy quarkus-example-pubsub \
317317
--entry-point=io.quarkus.gcp.functions.QuarkusBackgroundFunction \
318-
--runtime=java17 --trigger-resource hello_topic --trigger-event google.pubsub.topic.publish --source=target/deployment
318+
--runtime=java21 --trigger-resource hello_topic --trigger-event google.pubsub.topic.publish --source=target/deployment
319319
----
320320

321321
[IMPORTANT]
@@ -341,7 +341,7 @@ it needs to use `--trigger-bucket` parameter with the name of a previously creat
341341
----
342342
gcloud functions deploy quarkus-example-cloud-event --gen2 \
343343
--entry-point=io.quarkus.gcp.functions.QuarkusCloudEventsFunction \
344-
--runtime=java17 --trigger-bucket=example-cloud-event --source=target/deployment
344+
--runtime=java21 --trigger-bucket=example-cloud-event --source=target/deployment
345345
----
346346

347347
[IMPORTANT]
@@ -485,6 +485,11 @@ To use it, you must add the following test dependency in your `pom.xml`.
485485
<artifactId>quarkus-test-google-cloud-functions</artifactId>
486486
<scope>test</scope>
487487
</dependency>
488+
<dependency>
489+
<groupId>io.rest-assured</groupId>
490+
<artifactId>rest-assured</artifactId>
491+
<scope>test</scope>
492+
</dependency>
488493
----
489494

490495
This extension provides a `@WithFunction` annotation that can be used to annotate `@QuarkusTest` test cases to start a Cloud Function invoker before you test cases and stop it at the end.

_versions/main/guides/opentelemetry-tracing.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ We have 2 options:
121121

122122
* Take a look at: xref:observability-devservices-lgtm.adoc[Getting Started with Grafana-OTel-LGTM].
123123

124-
This features a Quarkus Dev service including a Grafana for visualizing data, Loki to store logs, Tempo to store traces and Prometheus to store metrics. Also provides and OTel collector to receive the data.
124+
This features a Quarkus Dev service including a Grafana for visualizing data, Loki to store logs, Tempo to store traces and Prometheus to store metrics. Also provides an OTel collector to receive the data.
125125

126126
=== Jaeger to see traces option
127127

@@ -148,7 +148,7 @@ services:
148148
- "16686:16686" # Jaeger UI
149149
- "14268:14268" # Receive legacy OpenTracing traces, optional
150150
- "4317:4317" # OTLP gRPC receiver
151-
- "4318:4318" # OTLP HTTP receiver, not yet used by Quarkus, optional
151+
- "4318:4318" # OTLP HTTP receiver
152152
- "14250:14250" # Receive from external otel-collector, optional
153153
environment:
154154
- COLLECTOR_OTLP_ENABLED=true

_versions/main/guides/smallrye-graphql-client.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,12 @@ that the target of the client is the application that is being tested (typically
230230
This is useful if your application contains a GraphQL server-side API as well as a GraphQL client that is used for
231231
testing the API.
232232

233+
If you need to add an authorization header, or any other custom HTTP header (in our case
234+
it's not required), this can be done with a configuration in the configuration file as well:
235+
----
236+
quarkus.smallrye-graphql-client.star-wars-typesafe.header.HEADER-KEY=HEADER-VALUE
237+
----
238+
233239
`star-wars-typesafe` is the name of the configured client instance, and corresponds to the `configKey`
234240
in the `@GraphQLClientApi` annotation. If you don't want to specify a custom name, you can leave
235241
out the `configKey`, and then refer to it by using the fully qualified name of the interface.

_versions/main/guides/websockets-next-tutorial.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ The solution is located in the `websockets-next-quickstart` link:{quickstarts-tr
5959

6060
First, we need a new project. Create a new project with the following command:
6161

62-
:create-app-artifact-id: websockets-quickstart
63-
:create-app-extensions: websockets
62+
:create-app-artifact-id: websockets-next-quickstart
63+
:create-app-extensions: websockets-next
6464
include::{includes}/devtools/create-app.adoc[]
6565

6666
This command generates the project (without any classes) and imports the `websockets-next` extension.

_versions/main/guides/writing-extensions.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1997,7 +1997,7 @@ static record KeyPairContext(Map<String, String> properties) {}
19971997

19981998
<1> You can retrieve the context from `LiveReloadBuildItem`. This call returns `null` if there is no context for the specified type; otherwise, it returns the stored instance from a previous live reload execution.
19991999
<2> You can check if this is the first execution (not a live reload).
2000-
<3> The `LiveReloadBuildItem#setContext` method allows you to set a context across live reloads.
2000+
<3> The `LiveReloadBuildItem#setContextObject` method allows you to set a context across live reloads.
20012001

20022002
==== Triggering Live Reload
20032003

0 commit comments

Comments
 (0)