Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate the quarkus-resteasy-mutiny extension #24005

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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. " +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's easier to use io.quarkus.logging.Log.warn here, but this is fine

"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"