feat: update quarkus #10

Merged
Thibaut merged 1 commits from dev into master 2025-01-21 21:16:12 +00:00
5 changed files with 7 additions and 70 deletions

1
.gitignore vendored
View File

@ -45,6 +45,7 @@ nb-configuration.xml
# Custom # Custom
/config/application.properties /config/application.properties
/cle_prive.jks /cle_prive.jks
/mail-truststore.p12
/src/main/resources/META-INF/resources/ /src/main/resources/META-INF/resources/
/media/ /media/
/media-ext/ /media-ext/

View File

@ -9,6 +9,7 @@ services:
volumes: volumes:
- ${PWD}/ffsaf.properties:/work/config/application.properties - ${PWD}/ffsaf.properties:/work/config/application.properties
- ${PWD}/ffsaf_cle_prive.jks:/work/cle_prive.jks - ${PWD}/ffsaf_cle_prive.jks:/work/cle_prive.jks
- ${PWD}/mail-truststore.p12:/work/mail-truststore.p12
- ${PWD}/ffsaf-media:/work/media - ${PWD}/ffsaf-media:/work/media
depends_on: depends_on:
ffsaf-db: ffsaf-db:

14
pom.xml
View File

@ -12,7 +12,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id> <quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id> <quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<quarkus.platform.version>3.6.5</quarkus.platform.version> <quarkus.platform.version>3.17.7</quarkus.platform.version>
<skipITs>true</skipITs> <skipITs>true</skipITs>
<surefire-plugin.version>3.1.2</surefire-plugin.version> <surefire-plugin.version>3.1.2</surefire-plugin.version>
</properties> </properties>
@ -34,11 +34,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.quarkus</groupId> <groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-reactive-jackson</artifactId> <artifactId>quarkus-rest-jackson</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-reactive-qute</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.quarkus</groupId> <groupId>io.quarkus</groupId>
@ -54,11 +50,11 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.quarkus</groupId> <groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-reactive</artifactId> <artifactId>quarkus-rest</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.quarkus</groupId> <groupId>io.quarkus</groupId>
<artifactId>quarkus-rest-client-reactive-jackson</artifactId> <artifactId>quarkus-rest-client-jackson</artifactId>
</dependency> </dependency>
<dependency> <dependency>
@ -88,7 +84,7 @@
<dependency> <dependency>
<groupId>io.quarkus</groupId> <groupId>io.quarkus</groupId>
<artifactId>quarkus-keycloak-admin-client-reactive</artifactId> <artifactId>quarkus-keycloak-admin-rest-client</artifactId>
</dependency> </dependency>

View File

@ -1,30 +0,0 @@
package fr.titionfire;
import io.quarkus.qute.Template;
import io.smallrye.mutiny.Uni;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
import static java.util.Objects.requireNonNull;
@Path("api/some-page")
public class SomePage {
private final Template page;
public SomePage(Template page) {
this.page = requireNonNull(page, "page is required");
}
@GET
@Produces(MediaType.TEXT_HTML)
public Uni<String> get() {
return Uni.createFrom()
.completionStage(() -> page
.data("name", "test")
.renderAsync());
}
}

View File

@ -1,31 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello {name ?: "Qute"}</title>
<style>
body {
background-color: #000;
color: #fff;
}
h1 {
color: #4695EB;
font-size: 6vw;
}
h1 b {
color: #be9100;
}
p {
font-size: 2vw;
}
</style>
</head>
<body>
<h1>Hello <b>{name ?: "Qute"}</b></h1>
<p>Create your web page using Quarkus RESTEasy & Qute</p>
</body>
</html>