Skip to content

Commit

Permalink
The renaming of the quarkus-vertx-web extension to quarkus-reactive-r…
Browse files Browse the repository at this point in the history
…outes is a breaking change.

This commit introduces a Maven relocation and so allows a smooth transition. Applications using the old artifact will get relocated automatically. A warning is displayed in the log indicating the relocation.
  • Loading branch information
cescoffier committed Sep 16, 2021
1 parent 550e59a commit 777eb9f
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5402,6 +5402,18 @@
<artifactId>quarkus-apache-httpclient-deployment</artifactId>
<version>${project.version}</version>
</dependency>

<!-- Relocations -->
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-web-deployment</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
3 changes: 3 additions & 0 deletions extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@
<module>google-cloud-functions-http</module>
<module>google-cloud-functions</module>
<module>grpc-common</module>

<!-- Relocations -->
<module>vertx-web</module>
</modules>

<build>
Expand Down
21 changes: 21 additions & 0 deletions extensions/vertx-web/deployment/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
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-extensions-parent</artifactId>
<groupId>io.quarkus</groupId>
<version>999-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>quarkus-vertx-web-deployment</artifactId>

<distributionManagement>
<relocation>
<artifactId>quarkus-reactive-routes-deployment</artifactId>
<message>The artifact ${artifactId} is now named quarkus-reactive-routes-deployment. Please update your dependency.</message>
</relocation>
</distributionManagement>
</project>
20 changes: 20 additions & 0 deletions extensions/vertx-web/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
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-extensions-parent</artifactId>
<groupId>io.quarkus</groupId>
<version>999-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>quarkus-vertx-web-parent</artifactId>
<name>Quarkus - Vert.x - Web (Relocation only)</name>
<packaging>pom</packaging>
<modules>
<module>deployment</module>
<module>runtime</module>
</modules>
</project>
21 changes: 21 additions & 0 deletions extensions/vertx-web/runtime/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
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-extensions-parent</artifactId>
<groupId>io.quarkus</groupId>
<version>999-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>quarkus-vertx-web</artifactId>

<distributionManagement>
<relocation>
<artifactId>quarkus-reactive-routes</artifactId>
<message>The artifact ${artifactId} is now named quarkus-reactive-routes. Please update your dependency.</message>
</relocation>
</distributionManagement>
</project>

0 comments on commit 777eb9f

Please sign in to comment.