Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
christofluethi committed Jun 11, 2024
1 parent 7ffd519 commit aa84106
Show file tree
Hide file tree
Showing 24 changed files with 146 additions and 12 deletions.
2 changes: 2 additions & 0 deletions content/en/docs/02.0/21_first-application.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand All @@ -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
Expand Down
4 changes: 3 additions & 1 deletion content/en/docs/02.0/22_implementing-rest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand All @@ -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.

Expand Down Expand Up @@ -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`:
Expand Down
6 changes: 3 additions & 3 deletions content/en/docs/02.0/25_reactive-programming.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:

Expand All @@ -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.
Expand Down Expand Up @@ -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`:
Expand All @@ -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`:
Expand Down
5 changes: 3 additions & 2 deletions content/en/docs/03.0/33_handson.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:

Expand All @@ -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`.

Expand Down
5 changes: 5 additions & 0 deletions content/en/docs/08.0/82_kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions content/en/docs/08.0/83_cloudevents.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" >}}


Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/09.0/92_jaeger.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:

Expand Down
12 changes: 8 additions & 4 deletions content/en/docs/09.0/93_metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" >}}


Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/10.0/105_build-and-use.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:

Expand Down
10 changes: 10 additions & 0 deletions solution/dev-services/dependencies.csv
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions solution/quarkus-appinfo-application/dependencies.csv
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions solution/quarkus-cloudevents-consumer/dependencies.csv
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions solution/quarkus-cloudevents-producer/dependencies.csv
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions solution/quarkus-getting-started/dependencies.csv
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions solution/quarkus-metrics-data-consumer/dependencies.csv
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions solution/quarkus-metrics-data-producer/dependencies.csv
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions solution/quarkus-opentelemetry-jaeger/dependencies.csv
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions solution/quarkus-reactive-messaging-consumer/dependencies.csv
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions solution/quarkus-reactive-messaging-producer/dependencies.csv
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions solution/quarkus-reactive-rest-consumer/dependencies.csv
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions solution/quarkus-reactive-rest-producer/dependencies.csv
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions solution/quarkus-rest-data-consumer/dependencies.csv
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions solution/quarkus-rest-data-producer/dependencies.csv
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions solution/techlab-extension-appinfo/dependencies.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
groupId,artifactId,version,scope

0 comments on commit aa84106

Please sign in to comment.