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

Make use of conditional dependencies in rest data panache #20893

Merged
merged 1 commit into from
Oct 20, 2021

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Oct 20, 2021

This way users don't have to manually add specify the links
implementation for their flavor of RESTEasy

Follows up on #20874

@geoand geoand requested a review from aloubyansky October 20, 2021 08:59
@quarkus-bot quarkus-bot bot added area/dependencies Pull requests that update a dependency file area/documentation area/panache area/rest area/spring Issues relating to the Spring integration labels Oct 20, 2021
Comment on lines +70 to +75
resteasyJaxrsProviderBuildItemBuildProducer
.produce(new ResteasyJaxrsProviderBuildItem(SortQueryParamFilter.class.getName()));
} else {
containerRequestFilterBuildItemBuildProducer
.produce(new ContainerRequestFilterBuildItem.Builder(SortQueryParamFilter.class.getName())
.setNameBindingNames(Collections.singleton(SortQueryParamValidator.class.getName())).build());
Copy link
Contributor Author

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

@quarkus-bot
Copy link

quarkus-bot bot commented Oct 20, 2021

This workflow status is outdated as a new workflow run has been triggered.

Failing Jobs - Building 5938fd2

Status Name Step Failures Logs Raw logs
Initial JDK 11 Build Verify extension dependencies ⚠️ Check → Logs Raw logs

@geoand geoand force-pushed the rest-data-panache-conditional-deps branch from 5938fd2 to b3056b4 Compare October 20, 2021 09:18
@quarkus-bot quarkus-bot bot added the area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins label Oct 20, 2021
Comment on lines +1454 to +1463
<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>
Copy link
Contributor Author

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

@geoand geoand force-pushed the rest-data-panache-conditional-deps branch from b3056b4 to ba38cf3 Compare October 20, 2021 09:20
Comment on lines +65 to +84
<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>
Copy link
Contributor Author

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

@quarkus-bot
Copy link

quarkus-bot bot commented Oct 20, 2021

This workflow status is outdated as a new workflow run has been triggered.

Failing Jobs - Building ba38cf3

Status Name Step Failures Logs Raw logs
Initial JDK 11 Build Verify extension dependencies ⚠️ Check → Logs Raw logs

@geoand geoand force-pushed the rest-data-panache-conditional-deps branch from ba38cf3 to e2dee5b Compare October 20, 2021 09:54
This way users don't have to manually add specify the links
implementation for their flavor of RESTEasy
@geoand geoand force-pushed the rest-data-panache-conditional-deps branch from e2dee5b to f12f18a Compare October 20, 2021 10:18
@quarkus-bot
Copy link

quarkus-bot bot commented Oct 20, 2021

Failing Jobs - Building f12f18a

Status Name Step Failures Logs Raw logs
✔️ JVM Tests - JDK 11
JVM Tests - JDK 17 Build ⚠️ Check → Logs Raw logs

⚠️ Errors occurred while downloading the build reports. This report is incomplete.

@geoand geoand merged commit 07f1fb8 into quarkusio:main Oct 20, 2021
@quarkus-bot quarkus-bot bot added this to the 2.5 - main milestone Oct 20, 2021
@geoand geoand deleted the rest-data-panache-conditional-deps branch October 20, 2021 15:12
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dependencies Pull requests that update a dependency file area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/documentation area/panache area/rest area/spring Issues relating to the Spring integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants