Skip to content

Commit fb7f91a

Browse files
committed
Version upgrades
Vert.x 4.3.7 Mutiny Vert.x 3.2.0 Hibernate Reactive 1.1.9 and others
1 parent 60b723d commit fb7f91a

File tree

2 files changed

+27
-18
lines changed

2 files changed

+27
-18
lines changed

pom.xml

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,51 +10,60 @@
1010

1111
<properties>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13-
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
14-
<exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
1513
<main.verticle>io.vertx.howtos.hr.MainVerticle</main.verticle>
16-
<mutiny-vertx.version>2.14.2</mutiny-vertx.version>
17-
<hibernate-reactive-core.version>1.0.0.Final</hibernate-reactive-core.version>
18-
<logback-classic.version>1.2.6</logback-classic.version>
19-
<testcontainers.version>1.16.0</testcontainers.version>
20-
<jackson-databind.version>2.13.0</jackson-databind.version>
2114
</properties>
2215

16+
<dependencyManagement>
17+
<dependencies>
18+
<dependency>
19+
<groupId>io.vertx</groupId>
20+
<artifactId>vertx-stack-depchain</artifactId>
21+
<version>4.3.7</version>
22+
<type>pom</type>
23+
<scope>import</scope>
24+
</dependency>
25+
<dependency>
26+
<groupId>io.smallrye.reactive</groupId>
27+
<artifactId>vertx-mutiny-clients-bom</artifactId>
28+
<version>3.2.0</version>
29+
<type>pom</type>
30+
<scope>import</scope>
31+
</dependency>
32+
</dependencies>
33+
</dependencyManagement>
34+
2335
<dependencies>
2436
<dependency>
2537
<groupId>io.smallrye.reactive</groupId>
2638
<artifactId>smallrye-mutiny-vertx-core</artifactId>
27-
<version>${mutiny-vertx.version}</version>
2839
</dependency>
2940
<dependency>
3041
<groupId>io.smallrye.reactive</groupId>
3142
<artifactId>smallrye-mutiny-vertx-web</artifactId>
32-
<version>${mutiny-vertx.version}</version>
3343
</dependency>
3444
<dependency>
3545
<groupId>io.smallrye.reactive</groupId>
3646
<artifactId>smallrye-mutiny-vertx-pg-client</artifactId>
37-
<version>${mutiny-vertx.version}</version>
3847
</dependency>
3948
<dependency>
4049
<groupId>org.hibernate.reactive</groupId>
4150
<artifactId>hibernate-reactive-core</artifactId>
42-
<version>${hibernate-reactive-core.version}</version>
51+
<version>1.1.9.Final</version>
4352
</dependency>
4453
<dependency>
4554
<groupId>com.fasterxml.jackson.core</groupId>
4655
<artifactId>jackson-databind</artifactId>
47-
<version>${jackson-databind.version}</version>
56+
<version>2.14.2</version>
4857
</dependency>
4958
<dependency>
5059
<groupId>ch.qos.logback</groupId>
5160
<artifactId>logback-classic</artifactId>
52-
<version>${logback-classic.version}</version>
61+
<version>1.4.6</version>
5362
</dependency>
5463
<dependency>
5564
<groupId>org.testcontainers</groupId>
5665
<artifactId>postgresql</artifactId>
57-
<version>${testcontainers.version}</version>
66+
<version>1.17.6</version>
5867
</dependency>
5968
</dependencies>
6069

@@ -63,15 +72,15 @@
6372
<plugin>
6473
<groupId>org.apache.maven.plugins</groupId>
6574
<artifactId>maven-compiler-plugin</artifactId>
66-
<version>${maven-compiler-plugin.version}</version>
75+
<version>3.10.1</version>
6776
<configuration>
6877
<release>11</release>
6978
</configuration>
7079
</plugin>
7180
<plugin>
7281
<groupId>org.codehaus.mojo</groupId>
7382
<artifactId>exec-maven-plugin</artifactId>
74-
<version>${exec-maven-plugin.version}</version>
83+
<version>3.0.0</version>
7584
<configuration>
7685
<mainClass>${main.verticle}</mainClass>
7786
</configuration>

src/main/java/io/vertx/howtos/hr/MainVerticle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public Uni<Void> asyncStart() {
5757

5858
// tag::async-start[]
5959
Uni<HttpServer> startHttpServer = vertx.createHttpServer()
60-
.requestHandler(router::handle)
60+
.requestHandler(router)
6161
.listen(8080)
6262
.onItem().invoke(() -> logger.info("✅ HTTP server listening on port 8080"));
6363

@@ -80,7 +80,7 @@ private Uni<Product> getProduct(RoutingContext ctx) {
8080
}
8181

8282
private Uni<Product> createProduct(RoutingContext ctx) {
83-
Product product = ctx.getBodyAsJson().mapTo(Product.class);
83+
Product product = ctx.body().asPojo(Product.class);
8484
return emf.withSession(session -> session.
8585
persist(product)
8686
.call(session::flush)

0 commit comments

Comments
 (0)