diff --git a/content/en/docs/02.0/21_first-application.md b/content/en/docs/02.0/21_first-application.md index a3590005..e1e64d2a 100644 --- a/content/en/docs/02.0/21_first-application.md +++ b/content/en/docs/02.0/21_first-application.md @@ -15,6 +15,7 @@ To create your first Quarkus application you have several possibilities: * Create your application with the Quickstart UI [code.quarkus.io](https://code.quarkus.io/) * Use IntelliJ or eclipse plugins which will assist creating projects (these are usually also based on code.quarkus.io) + ### Maven dependencies reference The solution for this lab uses the following dependencies in the `pom.xml`: @@ -23,6 +24,7 @@ The solution for this lab uses the following dependencies in the `pom.xml`: Be aware that `quarkus.platform.version` and `quarkus-plugin.version` should be set to `{{% param "quarkusVersion" %}}` in your `pom.xml`. + ### Task {{% param sectionnumber %}}.1: Create your application with maven To create your application with maven you can execute the following maven diff --git a/content/en/docs/02.0/22_implementing-rest.md b/content/en/docs/02.0/22_implementing-rest.md index 0de055a1..c0b1eb46 100644 --- a/content/en/docs/02.0/22_implementing-rest.md +++ b/content/en/docs/02.0/22_implementing-rest.md @@ -16,6 +16,7 @@ it on its own endpoint. ### {{% param sectionnumber %}}.2: Producing Data + #### Maven dependencies reference The solution for this lab uses the following dependencies in the `pom.xml`: @@ -25,7 +26,7 @@ The solution for this lab uses the following dependencies in the `pom.xml`: Be aware that `quarkus.platform.version` and `quarkus-plugin.version` should be set to `{{% param "quarkusVersion" %}}` in your `pom.xml`. -#### Implementation +#### Implementation Create a new Quarkus application like shown before called `quarkus-rest-data-producer`. The application should expose a `DataResource` on the path `/data` which provides the user with a `SensorMeasurement` holding a random double when requested. @@ -107,6 +108,7 @@ For more information about writing REST APIs with Quarkus see the [documentation ### {{% param sectionnumber %}}.3: Consuming Data + #### Maven dependencies reference The solution for this lab uses the following dependencies in the `pom.xml`: diff --git a/content/en/docs/02.0/25_reactive-programming.md b/content/en/docs/02.0/25_reactive-programming.md index ec95b004..fa39bc79 100644 --- a/content/en/docs/02.0/25_reactive-programming.md +++ b/content/en/docs/02.0/25_reactive-programming.md @@ -23,7 +23,8 @@ If you are not familiar with reactive programming and are interested to go furth We will start similar to the previous example with a producer which exposes data on his REST endpoint. -#### Maven dependencies reference + +### Maven dependencies reference The solution for this lab uses the following dependencies in the `pom.xml`: @@ -32,7 +33,6 @@ The solution for this lab uses the following dependencies in the `pom.xml`: Be aware that `quarkus.platform.version` and `quarkus-plugin.version` should be set to `{{% param "quarkusVersion" %}}` in your `pom.xml`. - ### Task {{% param sectionnumber %}}.1.1: Create producer project Start by creating a project `quarkus-reactive-rest-producer`. Add the extensions `quarkus-rest-jackson` to the project. @@ -405,6 +405,7 @@ curl -X POST localhost:8080/data -d "{\"data\":0.1, \"time\":\"2022-01-01T00:00: We have learned how to implement a reactive REST API to serve data in a complete reactive non-blocking way. Now it's time to take a look at the opposite, how do we reactively consume the API. + #### Maven dependencies reference The solution for this lab uses the following dependencies in the `pom.xml`: @@ -414,7 +415,6 @@ The solution for this lab uses the following dependencies in the `pom.xml`: Be aware that `quarkus.platform.version` and `quarkus-plugin.version` should be set to `{{% param "quarkusVersion" %}}` in your `pom.xml`. - #### Implementation Create another Quarkus project `quarkus-reactive-rest-consumer` with the following extensions: `quarkus-rest-jackson`, `quarkus-rest-client-jackson`: diff --git a/content/en/docs/03.0/33_handson.md b/content/en/docs/03.0/33_handson.md index 1ea1ca12..b3aeda7c 100644 --- a/content/en/docs/03.0/33_handson.md +++ b/content/en/docs/03.0/33_handson.md @@ -14,7 +14,8 @@ In this section we are going to extend our created REST microservices and create You can start with your `quarkus-rest-data-producer` project. Add tests for verifying your producing interfaces. Try to use the different techniques for mocking your injected beans. -#### Maven dependencies reference + +### Maven dependencies reference The solution for this lab uses the following dependencies in the `pom.xml`: @@ -23,7 +24,7 @@ The solution for this lab uses the following dependencies in the `pom.xml`: Be aware that `quarkus.platform.version` and `quarkus-plugin.version` should be set to `{{% param "quarkusVersion" %}}` in your `pom.xml`. -#### Implementation +### Implementation For demonstration purposes we implement a new endpoint `/data/dummy` which simply returns a String `dummy` with the help of an injected `DummyService`. diff --git a/content/en/docs/08.0/82_kafka.md b/content/en/docs/08.0/82_kafka.md index f3a3b5fb..91bef1a2 100644 --- a/content/en/docs/08.0/82_kafka.md +++ b/content/en/docs/08.0/82_kafka.md @@ -27,12 +27,17 @@ Apache Kafka is an event streaming platform used to collect, process, store, and The solution for this lab uses the following dependencies in the `pom.xml`. Be aware that `quarkus.platform.version` and `quarkus-plugin.version` should be set to `{{% param "quarkusVersion" %}}` in your `pom.xml`. + ##### Producer + {{< csvtable csv="/solution/quarkus-reactive-messaging-producer/dependencies.csv" class="dependencies" >}} + ##### Consumer + {{< csvtable csv="/solution/quarkus-reactive-messaging-consumer/dependencies.csv" class="dependencies" >}} + #### Implementation For local development we do have the choice to either run our Kafka services via Quarkus Devservices or with docker-compose. diff --git a/content/en/docs/08.0/83_cloudevents.md b/content/en/docs/08.0/83_cloudevents.md index 8a10e54c..0f6484de 100644 --- a/content/en/docs/08.0/83_cloudevents.md +++ b/content/en/docs/08.0/83_cloudevents.md @@ -58,15 +58,20 @@ time | Timestamp [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339) | Tim In addition to the specification of CloudEvents itself, there are extensions giving extra flexibility for other meta fields to enrich your event. For example OpenTracing header fields can be added by the [Distributed Tracing](https://github.com/cloudevents/spec/blob/main/cloudevents/extensions/distributed-tracing.md) extension. + ### Maven dependencies reference The solution for this lab uses the following dependencies in the `pom.xml`. Be aware that `quarkus.platform.version` and `quarkus-plugin.version` should be set to `{{% param "quarkusVersion" %}}` in your `pom.xml`. + #### Producer + {{< csvtable csv="/solution/quarkus-cloudevents-producer/dependencies.csv" class="dependencies" >}} + #### Consumer + {{< csvtable csv="/solution/quarkus-cloudevents-consumer/dependencies.csv" class="dependencies" >}} diff --git a/content/en/docs/09.0/92_jaeger.md b/content/en/docs/09.0/92_jaeger.md index 809c40f2..abc81630 100644 --- a/content/en/docs/09.0/92_jaeger.md +++ b/content/en/docs/09.0/92_jaeger.md @@ -13,7 +13,7 @@ We are going to test the OpenTelemetry API live with Jaeger as our tracing servi ## Task {{% param sectionnumber %}}.1: Create the new service -#### Maven dependencies reference +### Maven dependencies reference The solution for this lab uses the following dependencies in the `pom.xml`: diff --git a/content/en/docs/09.0/93_metrics.md b/content/en/docs/09.0/93_metrics.md index ee635d6a..de6e6faa 100644 --- a/content/en/docs/09.0/93_metrics.md +++ b/content/en/docs/09.0/93_metrics.md @@ -11,18 +11,22 @@ description: > Knowing about the state of your applications in a microservice architecture is crucial. We will learn in this chapter how to use the metrics extension to get insights about our applications. -You can start by copying the rest application `quarkus-rest-data-producer` and `quarkus-rest-data-consumer` or you can just use these project and enhance them with metrics. +You can start by copying the rest application `quarkus-rest-data-producer` and `quarkus-rest-data-consumer` or you can just use these project and enhance them with metrics. -#### Maven dependencies reference +### Maven dependencies reference The solution for this lab uses the following dependencies in the `pom.xml`. Be aware that `quarkus.platform.version` and `quarkus-plugin.version` should be set to `{{% param "quarkusVersion" %}}` in your `pom.xml`. -##### Producer + +#### Producer + {{< csvtable csv="/solution/quarkus-metrics-data-producer/dependencies.csv" class="dependencies" >}} -##### Consumer + +#### Consumer + {{< csvtable csv="/solution/quarkus-metrics-data-consumer/dependencies.csv" class="dependencies" >}} diff --git a/content/en/docs/10.0/105_build-and-use.md b/content/en/docs/10.0/105_build-and-use.md index 89b20367..81fe6c34 100644 --- a/content/en/docs/10.0/105_build-and-use.md +++ b/content/en/docs/10.0/105_build-and-use.md @@ -35,7 +35,7 @@ mvn io.quarkus:quarkus-maven-plugin:{{% param "quarkusVersion" %}}:create \ ``` -#### Maven dependencies reference +### Maven dependencies reference The solution for this lab uses the following dependencies in the `pom.xml`: diff --git a/solution/dev-services/dependencies.csv b/solution/dev-services/dependencies.csv new file mode 100644 index 00000000..d9951809 --- /dev/null +++ b/solution/dev-services/dependencies.csv @@ -0,0 +1,10 @@ +groupId,artifactId,version,scope +io.quarkus,quarkus-arc,, +io.quarkus,quarkus-resteasy,, +io.quarkus,quarkus-resteasy-jsonb,, +org.flywaydb,flyway-database-postgresql,, +io.quarkus,quarkus-jdbc-postgresql,, +io.quarkus,quarkus-flyway,, +io.quarkus,quarkus-hibernate-orm-panache,, +io.quarkus,quarkus-junit5,,test +io.rest-assured,rest-assured,,test diff --git a/solution/quarkus-appinfo-application/dependencies.csv b/solution/quarkus-appinfo-application/dependencies.csv new file mode 100644 index 00000000..c7ad62a4 --- /dev/null +++ b/solution/quarkus-appinfo-application/dependencies.csv @@ -0,0 +1,6 @@ +groupId,artifactId,version,scope +io.quarkus,quarkus-arc,, +io.quarkus,quarkus-rest,, +ch.puzzle,techlab-extension-appinfo,1.0.0-SNAPSHOT, +io.quarkus,quarkus-junit5,,test +io.rest-assured,rest-assured,,test diff --git a/solution/quarkus-cloudevents-consumer/dependencies.csv b/solution/quarkus-cloudevents-consumer/dependencies.csv new file mode 100644 index 00000000..a657d338 --- /dev/null +++ b/solution/quarkus-cloudevents-consumer/dependencies.csv @@ -0,0 +1,8 @@ +groupId,artifactId,version,scope +io.quarkus,quarkus-rest,, +io.quarkus,quarkus-messaging-kafka,, +io.quarkus,quarkus-arc,, +io.quarkus,quarkus-confluent-registry-avro,, +io.confluent,kafka-avro-serializer,7.5.1, +io.quarkus,quarkus-junit5,,test +io.rest-assured,rest-assured,,test diff --git a/solution/quarkus-cloudevents-producer/dependencies.csv b/solution/quarkus-cloudevents-producer/dependencies.csv new file mode 100644 index 00000000..3a8f3298 --- /dev/null +++ b/solution/quarkus-cloudevents-producer/dependencies.csv @@ -0,0 +1,9 @@ +groupId,artifactId,version,scope +io.quarkus,quarkus-rest,, +io.quarkus,quarkus-messaging-kafka,, +io.quarkus,quarkus-arc,, +io.quarkus,quarkus-confluent-registry-avro,, +io.confluent,kafka-avro-serializer,7.5.1, +org.apache.avro,avro,1.11.1, +io.quarkus,quarkus-junit5,,test +io.rest-assured,rest-assured,,test diff --git a/solution/quarkus-getting-started/dependencies.csv b/solution/quarkus-getting-started/dependencies.csv new file mode 100644 index 00000000..4e09fb3e --- /dev/null +++ b/solution/quarkus-getting-started/dependencies.csv @@ -0,0 +1,6 @@ +groupId,artifactId,version,scope +io.quarkus,quarkus-arc,, +io.quarkus,quarkus-rest,, +io.quarkus,quarkus-rest-jackson,, +io.quarkus,quarkus-junit5,,test +io.rest-assured,rest-assured,,test diff --git a/solution/quarkus-metrics-data-consumer/dependencies.csv b/solution/quarkus-metrics-data-consumer/dependencies.csv new file mode 100644 index 00000000..233c501d --- /dev/null +++ b/solution/quarkus-metrics-data-consumer/dependencies.csv @@ -0,0 +1,11 @@ +groupId,artifactId,version,scope +io.quarkus,quarkus-rest-client-jackson,, +io.quarkus,quarkus-arc,, +io.quarkus,quarkus-rest,, +io.quarkus,quarkus-rest-jackson,, +io.quarkus,quarkus-smallrye-fault-tolerance,, +io.quarkus,quarkus-smallrye-health,, +io.quarkus,quarkus-micrometer-registry-prometheus,, +io.quarkus,quarkus-junit5,,test +io.rest-assured,rest-assured,,test +io.quarkus,quarkus-junit5-mockito,,test diff --git a/solution/quarkus-metrics-data-producer/dependencies.csv b/solution/quarkus-metrics-data-producer/dependencies.csv new file mode 100644 index 00000000..6176a74b --- /dev/null +++ b/solution/quarkus-metrics-data-producer/dependencies.csv @@ -0,0 +1,10 @@ +groupId,artifactId,version,scope +io.quarkus,quarkus-arc,, +io.quarkus,quarkus-rest,, +io.quarkus,quarkus-smallrye-fault-tolerance,, +io.quarkus,quarkus-rest-jackson,, +io.quarkus,quarkus-smallrye-health,, +io.quarkus,quarkus-micrometer-registry-prometheus,, +io.quarkus,quarkus-junit5,,test +io.rest-assured,rest-assured,,test +io.quarkus,quarkus-junit5-mockito,,test diff --git a/solution/quarkus-opentelemetry-jaeger/dependencies.csv b/solution/quarkus-opentelemetry-jaeger/dependencies.csv new file mode 100644 index 00000000..a92c810b --- /dev/null +++ b/solution/quarkus-opentelemetry-jaeger/dependencies.csv @@ -0,0 +1,6 @@ +groupId,artifactId,version,scope +io.quarkus,quarkus-rest,, +io.quarkus,quarkus-opentelemetry,, +io.quarkus,quarkus-arc,, +io.quarkus,quarkus-junit5,,test +io.rest-assured,rest-assured,,test diff --git a/solution/quarkus-reactive-messaging-consumer/dependencies.csv b/solution/quarkus-reactive-messaging-consumer/dependencies.csv new file mode 100644 index 00000000..b4457acb --- /dev/null +++ b/solution/quarkus-reactive-messaging-consumer/dependencies.csv @@ -0,0 +1,8 @@ +groupId,artifactId,version,scope +io.quarkus,quarkus-rest-jackson,, +io.quarkus,quarkus-rest-jsonb,, +io.quarkus,quarkus-messaging-kafka,, +io.quarkus,quarkus-arc,, +io.quarkus,quarkus-rest,, +io.quarkus,quarkus-junit5,,test +io.rest-assured,rest-assured,,test diff --git a/solution/quarkus-reactive-messaging-producer/dependencies.csv b/solution/quarkus-reactive-messaging-producer/dependencies.csv new file mode 100644 index 00000000..cc725742 --- /dev/null +++ b/solution/quarkus-reactive-messaging-producer/dependencies.csv @@ -0,0 +1,6 @@ +groupId,artifactId,version,scope +io.quarkus,quarkus-jackson,, +io.quarkus,quarkus-jsonb,, +io.quarkus,quarkus-messaging-kafka,, +io.quarkus,quarkus-arc,, +io.quarkus,quarkus-junit5,,test diff --git a/solution/quarkus-reactive-rest-consumer/dependencies.csv b/solution/quarkus-reactive-rest-consumer/dependencies.csv new file mode 100644 index 00000000..9a81e817 --- /dev/null +++ b/solution/quarkus-reactive-rest-consumer/dependencies.csv @@ -0,0 +1,8 @@ +groupId,artifactId,version,scope +io.quarkus,quarkus-rest-jackson,, +io.quarkus,quarkus-rest-client-jackson,, +io.quarkus,quarkus-arc,, +io.quarkus,quarkus-rest,, +io.quarkus,quarkus-junit5-mockito,,test +io.quarkus,quarkus-junit5,,test +io.rest-assured,rest-assured,,test diff --git a/solution/quarkus-reactive-rest-producer/dependencies.csv b/solution/quarkus-reactive-rest-producer/dependencies.csv new file mode 100644 index 00000000..cc5bf004 --- /dev/null +++ b/solution/quarkus-reactive-rest-producer/dependencies.csv @@ -0,0 +1,7 @@ +groupId,artifactId,version,scope +io.quarkus,quarkus-rest-jackson,, +io.quarkus,quarkus-arc,, +io.quarkus,quarkus-rest,, +io.quarkus,quarkus-reactive-pg-client,, +io.quarkus,quarkus-junit5,,test +io.rest-assured,rest-assured,,test diff --git a/solution/quarkus-rest-data-consumer/dependencies.csv b/solution/quarkus-rest-data-consumer/dependencies.csv new file mode 100644 index 00000000..0cd07db3 --- /dev/null +++ b/solution/quarkus-rest-data-consumer/dependencies.csv @@ -0,0 +1,10 @@ +groupId,artifactId,version,scope +io.quarkus,quarkus-rest-client-jackson,, +io.quarkus,quarkus-arc,, +io.quarkus,quarkus-rest,, +io.quarkus,quarkus-rest-jackson,, +io.quarkus,quarkus-smallrye-fault-tolerance,, +io.quarkus,quarkus-smallrye-health,, +io.quarkus,quarkus-junit5,,test +io.rest-assured,rest-assured,,test +io.quarkus,quarkus-junit5-mockito,,test diff --git a/solution/quarkus-rest-data-producer/dependencies.csv b/solution/quarkus-rest-data-producer/dependencies.csv new file mode 100644 index 00000000..1077bdb9 --- /dev/null +++ b/solution/quarkus-rest-data-producer/dependencies.csv @@ -0,0 +1,9 @@ +groupId,artifactId,version,scope +io.quarkus,quarkus-arc,, +io.quarkus,quarkus-rest,, +io.quarkus,quarkus-smallrye-fault-tolerance,, +io.quarkus,quarkus-rest-jackson,, +io.quarkus,quarkus-smallrye-health,, +io.quarkus,quarkus-junit5,,test +io.rest-assured,rest-assured,,test +io.quarkus,quarkus-junit5-mockito,,test diff --git a/solution/techlab-extension-appinfo/dependencies.csv b/solution/techlab-extension-appinfo/dependencies.csv new file mode 100644 index 00000000..b0e4cb49 --- /dev/null +++ b/solution/techlab-extension-appinfo/dependencies.csv @@ -0,0 +1 @@ +groupId,artifactId,version,scope