Skip to content

Commit

Permalink
Deprecate the quarkus-resteasy-mutiny extension and explain why in a …
Browse files Browse the repository at this point in the history
…warning
  • Loading branch information
cescoffier authored and gsmet committed Feb 28, 2022
1 parent 4e56d41 commit 212f0dc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.quarkus.resteasy.mutiny.deployment;

import org.jboss.logging.Logger;

import io.quarkus.deployment.Feature;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;
Expand All @@ -8,7 +10,16 @@ public class ResteasyMutinyProcessor {

@BuildStep
FeatureBuildItem feature() {
warn();
return new FeatureBuildItem(Feature.RESTEASY_MUTINY);
}

void warn() {
Logger.getLogger(ResteasyMutinyProcessor.class).warn("The quarkus-resteasy-mutiny extension is deprecated. " +
"Switch to RESTEasy Reactive instead.\n" +
"This extension adds support for Uni and Multi to RESTEasy 'classic', without using the reactive execution model,"
+
" as RESTEasy classic does not use it. To properly integrate Mutiny and RESTEasy, use RESTEasy Reactive. See https://quarkus.io/guides/getting-started-reactive for detailed instructions");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ metadata:
categories:
- "web"
- "reactive"
status: "preview"
status: "deprecated"

0 comments on commit 212f0dc

Please sign in to comment.