Skip to content

Commit

Permalink
Vert.x restructuring - part 2/2
Browse files Browse the repository at this point in the history
- rename quarkus-vertx-web to quarkus-reactive-routes
- keep the API package name io.quarkus.vertx.web
- resolves #16797
  • Loading branch information
mkouba committed Sep 10, 2021
1 parent 994e164 commit 828a6cf
Show file tree
Hide file tree
Showing 114 changed files with 75 additions and 75 deletions.
4 changes: 2 additions & 2 deletions bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1552,12 +1552,12 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web</artifactId>
<artifactId>quarkus-reactive-routes</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web-deployment</artifactId>
<artifactId>quarkus-reactive-routes-deployment</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down
26 changes: 13 additions & 13 deletions devtools/bom-descriptor-json/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1852,6 +1852,19 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-reactive-routes</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-redis-client</artifactId>
Expand Down Expand Up @@ -2671,19 +2684,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-webjars-locator</artifactId>
Expand Down
8 changes: 4 additions & 4 deletions devtools/cli/src/test/java/io/quarkus/cli/CliDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ public static Result invokeExtensionListInstallableSearch(Path projectRoot) thro
Assertions.assertEquals(CommandLine.ExitCode.OK, result.exitCode,
"Expected OK return code. Result:\n" + result);

Assertions.assertTrue(result.stdout.contains("quarkus-vertx-web"),
"quarkus-vertx-web should be returned in search result. Found:\n" + result);
Assertions.assertTrue(result.stdout.contains("quarkus-reactive-routes"),
"quarkus-reactive-routes should be returned in search result. Found:\n" + result);
Assertions.assertFalse(result.stdout.contains("quarkus-vertx-http"),
"quarkus-vertx-http should not be returned in search result (already installed). Found:\n" + result);

Expand All @@ -290,8 +290,8 @@ public static void invokeExtensionListFormatting(Path projectRoot) throws Except
Result result = CliDriver.execute(projectRoot, "extension", "list", "-e", "-B", "--verbose", "-i", "--concise");
Assertions.assertEquals(CommandLine.ExitCode.OK, result.exitCode,
"Expected OK return code. Result:\n" + result);
Assertions.assertTrue(result.stdout.contains("quarkus-vertx-web"),
"quarkus-vertx-web should be returned in result. Found:\n" + result);
Assertions.assertTrue(result.stdout.contains("quarkus-reactive-routes"),
"quarkus-reactive-routes should be returned in result. Found:\n" + result);
Assertions.assertTrue(result.stdout.contains("Reactive Routes"),
"'Reactive Routes' descriptive name should be returned in results. Found:\n" + result);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void testCreateAppOverrides() throws Exception {
Path javaMain = valdiateJBangSourcePackage(project, "");

String source = CliDriver.readFileAsString(project, javaMain);
Assertions.assertTrue(source.contains("quarkus-vertx-web"),
Assertions.assertTrue(source.contains("quarkus-reactive-routes"),
"Generated source should reference vertx-web. Found:\n" + source);

result = CliDriver.invokeValidateDryRunBuild(project);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ language:
dependencies:
- io.quarkus:quarkus-google-cloud-functions-http
- io.quarkus:quarkus-resteasy
- io.quarkus:quarkus-vertx-web
- io.quarkus:quarkus-reactive-routes
- io.quarkus:quarkus-funqy-http
- io.quarkus:quarkus-undertow
26 changes: 13 additions & 13 deletions docs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1813,6 +1813,19 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-reactive-routes-deployment</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-redis-client-deployment</artifactId>
Expand Down Expand Up @@ -2632,19 +2645,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web-deployment</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-webjars-locator-deployment</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/amazon-lambda-http.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ There is nothing special about the POM other than the inclusion of the `quarkus-
(if you are deploying an AWS Gateway HTTP API) or the `quarkus-amazon-lambda-rest` extension (if you are deploy an AWS Gateway REST API).
These extensions automatically generate everything you might need for your lambda deployment.

Also, at least in the generated Maven archetype `pom.xml`, the `quarkus-resteasy`, `quarkus-vertx-web`, and `quarkus-undertow`
Also, at least in the generated Maven archetype `pom.xml`, the `quarkus-resteasy`, `quarkus-reactive-routes`, and `quarkus-undertow`
dependencies are all optional. Pick which HTTP framework(s) you want to use (JAX-RS, Vertx Web, and/or Servlet) and
remove the other dependencies to shrink your deployment.

Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/azure-functions-http.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ https://{appName}.azurewebsites.net/api/funqyHello

The sample project includes the RESTEasy, Undertow, Vert.x Web, link:funqy-http[Funqy HTTP] extensions. If you are only using one of those
APIs (i.e. jax-rs only), respectively remove the maven dependency `quarkus-resteasy`, `quarkus-undertow`, `quarkus-funqy-http`, and/or
`quarkus-vertx-web`.
`quarkus-reactive-routes`.

You must include the `quarkus-azure-functions-http` extension as this is a generic bridge between the Azure Functions
runtime and the HTTP framework you are writing your microservices in.
Expand Down
6 changes: 3 additions & 3 deletions docs/src/main/asciidoc/reactive-routes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ See the xref:quarkus-reactive-architecture.adoc[Quarkus Reactive Architecture do
== Declaring reactive routes

The first way to use reactive routes is to use the `@Route` annotation.
To have access to this annotation, you need to add the `quarkus-vertx-web` extension:
To have access to this annotation, you need to add the `quarkus-reactive-routes` extension:

In your `pom.xml` file, add:

[source,xml]
----
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web</artifactId>
<artifactId>quarkus-reactive-routes</artifactId>
</dependency>
----

Expand Down Expand Up @@ -606,7 +606,7 @@ Check the https://vertx.io/docs/vertx-web/java/#_basic_vert_x_web_concepts[Vert.
[NOTE]
====
`Router` access is provided by the `quarkus-vertx-http` extension.
If you use `quarkus-resteasy` or `quarkus-vertx-web`, the extension will be added automatically.
If you use `quarkus-resteasy` or `quarkus-reactive-routes`, the extension will be added automatically.
====
== Intercepting HTTP requests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<!-- remove if not using vertx web -->
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web</artifactId>
<artifactId>quarkus-reactive-routes</artifactId>
</dependency>
<!-- remove if not using funqy -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<!-- remove if not using vertx web -->
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web</artifactId>
<artifactId>quarkus-reactive-routes</artifactId>
</dependency>
<!-- remove if not using funqy -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<!-- remove if not using vertx web -->
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web</artifactId>
<artifactId>quarkus-reactive-routes</artifactId>
</dependency>
<!-- remove if not using funqy -->
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion extensions/micrometer/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@

<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web-deployment</artifactId>
<artifactId>quarkus-reactive-routes-deployment</artifactId>
<scope>test</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<module>websockets</module>
<module>webjars-locator</module>
<module>resteasy-reactive</module>
<module>reactive-routes</module>
<module>apache-httpclient</module>

<!-- Monitoring -->
Expand All @@ -56,7 +57,6 @@
<!-- Reactive -->
<module>mutiny</module>
<module>vertx</module>
<module>vertx-web</module>
<module>netty</module>
<module>reactive-messaging-http</module>
<module>reactive-streams-operators</module>
Expand Down
2 changes: 1 addition & 1 deletion extensions/qute/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web-deployment</artifactId>
<artifactId>quarkus-reactive-routes-deployment</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion extensions/reactive-messaging-http/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web-deployment</artifactId>
<artifactId>quarkus-reactive-routes-deployment</artifactId>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion extensions/reactive-messaging-http/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web</artifactId>
<artifactId>quarkus-reactive-routes</artifactId>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>quarkus-vertx-web-parent</artifactId>
<artifactId>quarkus-reactive-routes-parent</artifactId>
<groupId>io.quarkus</groupId>
<version>999-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>quarkus-vertx-web-deployment</artifactId>
<name>Quarkus - Vert.x Web - Deployment</name>
<artifactId>quarkus-reactive-routes-deployment</artifactId>
<name>Quarkus - Reactive Routes - Deployment</name>

<dependencies>
<dependency>
Expand All @@ -23,7 +23,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web</artifactId>
<artifactId>quarkus-reactive-routes</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>quarkus-vertx-web-parent</artifactId>
<name>Quarkus - Vert.x Web</name>
<artifactId>quarkus-reactive-routes-parent</artifactId>
<name>Quarkus - Reactive Routes</name>
<packaging>pom</packaging>
<modules>
<module>deployment</module>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>quarkus-vertx-web-parent</artifactId>
<artifactId>quarkus-reactive-routes-parent</artifactId>
<groupId>io.quarkus</groupId>
<version>999-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>quarkus-vertx-web</artifactId>
<name>Quarkus - Vert.x Web - Runtime</name>
<artifactId>quarkus-reactive-routes</artifactId>
<name>Quarkus - Reactive Routes - Runtime</name>
<description>REST framework offering the route model to define non blocking endpoints</description>
<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion extensions/smallrye-health/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web-deployment</artifactId>
<artifactId>quarkus-reactive-routes-deployment</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion extensions/smallrye-jwt/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web-deployment</artifactId>
<artifactId>quarkus-reactive-routes-deployment</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
2 changes: 1 addition & 1 deletion extensions/smallrye-jwt/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web</artifactId>
<artifactId>quarkus-reactive-routes</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
2 changes: 1 addition & 1 deletion extensions/smallrye-openapi/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web-deployment</artifactId>
<artifactId>quarkus-reactive-routes-deployment</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/amazon-lambda-http/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web</artifactId>
<artifactId>quarkus-reactive-routes</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down Expand Up @@ -118,7 +118,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web-deployment</artifactId>
<artifactId>quarkus-reactive-routes-deployment</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>test</scope>
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/amazon-lambda-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web</artifactId>
<artifactId>quarkus-reactive-routes</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down Expand Up @@ -118,7 +118,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web-deployment</artifactId>
<artifactId>quarkus-reactive-routes-deployment</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>test</scope>
Expand Down
Loading

0 comments on commit 828a6cf

Please sign in to comment.