-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Make use of conditional dependencies in rest data panache #20893
Make use of conditional dependencies in rest data panache #20893
Conversation
resteasyJaxrsProviderBuildItemBuildProducer | ||
.produce(new ResteasyJaxrsProviderBuildItem(SortQueryParamFilter.class.getName())); | ||
} else { | ||
containerRequestFilterBuildItemBuildProducer | ||
.produce(new ContainerRequestFilterBuildItem.Builder(SortQueryParamFilter.class.getName()) | ||
.setNameBindingNames(Collections.singleton(SortQueryParamValidator.class.getName())).build()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now needed because the dependency is now properly treated as a Quarkus extension runtime part and therefore not indexed
5938fd2
to
b3056b4
Compare
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-resteasy-links</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-resteasy-links-deployment</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new extension doesn't really do much, it's just needed in order to take advantage of the conditional dependencies feature
b3056b4
to
ba38cf3
Compare
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-bootstrap-maven-plugin</artifactId> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<configuration> | ||
<annotationProcessorPaths> | ||
<path> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-extension-processor</artifactId> | ||
<version>${project.version}</version> | ||
</path> | ||
</annotationProcessorPaths> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason this was not present in the extension. Obviously it's needed in order to properly setup the metadata needed for the extension to work with conditional dependencies
ba38cf3
to
e2dee5b
Compare
This way users don't have to manually add specify the links implementation for their flavor of RESTEasy
e2dee5b
to
f12f18a
Compare
This way users don't have to manually add specify the links
implementation for their flavor of RESTEasy
Follows up on #20874