-
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
Declaring explicitly the build service in the QuarkusBuildTask #44399
Declaring explicitly the build service in the QuarkusBuildTask #44399
Conversation
cc @aloubyansky |
I'm still working on a reproducer (without the QuarkusPlugin) for the Build Tool team, a simple:
with the same configuration as the reproducer is not triggering the issue. |
d74c319
to
d0ae6d4
Compare
Hi @aloubyansky, after discussing this issue with the Build tool team I'm opening for review this PR.
The original idea was to remove the BuildService, but first, we need to address the issue where the actions nativeArgs and manifest need to be extracted from QuarkusBuild and included in the Quarkus extension to later be wired as inputs (I will create an issue soon). This PR addresses the issue by declaring a build service for each project where the Quarkus plugin is applied and explicitly declaring the build service in the task. |
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.
Thanks a lot @cdsap for all the details and the patch
This comment has been minimized.
This comment has been minimized.
The CI seems to be stuck again |
Yeah, really weird. I would just rebase and force push if I were you @aloubyansky |
d0ae6d4
to
b6324cd
Compare
👍🏽 Seems to be good now |
Status for workflow
|
#44367 describes the issue of the task
quarkusAppPartsBuild
in a project applying quarkus in multiple modules.The issue is reproducible in any project with the following configuration:
The property failing is
additionalForcedProperties
, which represents a BuildSerivice with the forced properties used by different tasks. The build service uses the@ServiceReference
annotation that eliminates the need to declare the association between the task and the service explicitly. This is the part that is failing and I need to confirm with the Build Tool team If it's an expected behavior.This PR implements the explicit declaration between the task and the service:
https://docs.gradle.org/current/userguide/build_services.html#sec:service_references
additionalForcedProperties
#44367