From caa2ca2f7540be22a6e1c210d8576f32d614e3fd Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 26 Sep 2024 12:07:09 +0200 Subject: [PATCH] Presets - Rename Microservice with database to REST service (#1502) * Presets - Rename Microservice with database to REST service * Fix legacy RESTEasy Reactive preset and reorganize presets a bit --- .../quarkus/code/service/PlatformService.java | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/base/src/main/java/io/quarkus/code/service/PlatformService.java b/base/src/main/java/io/quarkus/code/service/PlatformService.java index 26f108c3..90fa57f9 100644 --- a/base/src/main/java/io/quarkus/code/service/PlatformService.java +++ b/base/src/main/java/io/quarkus/code/service/PlatformService.java @@ -49,24 +49,21 @@ public class PlatformService { public static final List PRESETS = List.of( - new Preset("db-service-reactive", "Microservice with database", - "https://raw.githubusercontent.com/quarkusio/code.quarkus.io/main/base/assets/icons/presets/db-service.svg", - List.of("io.quarkus:quarkus-resteasy-reactive", "io.quarkus:quarkus-resteasy-reactive-jackson", - "io.quarkus:quarkus-hibernate-reactive-panache", "io.quarkus:quarkus-jdbc-postgresql")), - new Preset("webapp-npm-reactive", "Web app with NPM UI", - "https://raw.githubusercontent.com/quarkusio/code.quarkus.io/main/base/assets/icons/presets/webapp-npm.svg", - List.of("io.quarkus:quarkus-resteasy-reactive", "io.quarkus:quarkus-resteasy-reactive-jackson", - "io.quarkiverse.quinoa:quarkus-quinoa")), - new Preset("event-driven-reactive-kafka", "Event driven service with Kafka", - "https://raw.githubusercontent.com/quarkusio/code.quarkus.io/main/base/assets/icons/presets/event-driven-kafka.svg", - List.of("io.quarkus:quarkus-smallrye-reactive-messaging-kafka")), - new Preset("db-service", "Microservice with database", + // Some presets are duplicated to support platforms before and after the Big Reactive Renaming + new Preset("db-service", "REST service with database", "https://raw.githubusercontent.com/quarkusio/code.quarkus.io/main/base/assets/icons/presets/db-service.svg", List.of("io.quarkus:quarkus-rest", "io.quarkus:quarkus-rest-jackson", "io.quarkus:quarkus-hibernate-orm-panache", "io.quarkus:quarkus-jdbc-postgresql")), + new Preset("db-service", "REST service with database", + "https://raw.githubusercontent.com/quarkusio/code.quarkus.io/main/base/assets/icons/presets/db-service.svg", + List.of("io.quarkus:quarkus-resteasy-reactive", "io.quarkus:quarkus-resteasy-reactive-jackson", + "io.quarkus:quarkus-hibernate-orm-panache", "io.quarkus:quarkus-jdbc-postgresql")), new Preset("event-driven-kafka", "Event driven service with Kafka", "https://raw.githubusercontent.com/quarkusio/code.quarkus.io/main/base/assets/icons/presets/event-driven-kafka.svg", List.of("io.quarkus:quarkus-messaging-kafka")), + new Preset("event-driven-kafka", "Event driven service with Kafka", + "https://raw.githubusercontent.com/quarkusio/code.quarkus.io/main/base/assets/icons/presets/event-driven-kafka.svg", + List.of("io.quarkus:quarkus-smallrye-reactive-messaging-kafka")), new Preset("cli", "Command-line tool", "https://raw.githubusercontent.com/quarkusio/code.quarkus.io/main/base/assets/icons/presets/cli.svg", List.of("io.quarkus:quarkus-picocli")), @@ -77,6 +74,10 @@ public class PlatformService { "https://raw.githubusercontent.com/quarkusio/code.quarkus.io/main/base/assets/icons/presets/webapp-npm.svg", List.of("io.quarkus:quarkus-rest", "io.quarkus:quarkus-rest-jackson", "io.quarkiverse.quinoa:quarkus-quinoa")), + new Preset("webapp-npm", "Web app with NPM UI", + "https://raw.githubusercontent.com/quarkusio/code.quarkus.io/main/base/assets/icons/presets/webapp-npm.svg", + List.of("io.quarkus:quarkus-resteasy-reactive", "io.quarkus:quarkus-resteasy-reactive-jackson", + "io.quarkiverse.quinoa:quarkus-quinoa")), new Preset("webapp-qute", "Web app with ServerSide Rendering", "https://raw.githubusercontent.com/quarkusio/code.quarkus.io/main/base/assets/icons/presets/webapp-qute.svg", List.of("io.quarkiverse.qute.web:quarkus-qute-web", "io.quarkiverse.web-bundler:quarkus-web-bundler")),