Skip to content

Commit

Permalink
Merge pull request quarkusio#24005 from cescoffier/deprecate-resteasy…
Browse files Browse the repository at this point in the history
…-classic-mutiny
  • Loading branch information
gastaldi authored Feb 28, 2022
2 parents b0429fc + 212f0dc commit d004fdd
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 d004fdd

Please sign in to comment.