-
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
Gradle 3.16 fails with missing required property additionalForcedProperties
#44367
Comments
FYI, the problem happens with As share on zulip this morning:
|
Just tested with Quarkus 3.16.2 and same issue. So, we should fix that for 3.16.3. I'm working on a PR. |
For clarify: it's an issue with Quarkus 3.16.1 with Gradle in some "configuration". |
@aloubyansky here we go ;) thanks ! |
Is there any workaround for it? |
@aloubyansky, I'm still investigating the issue. In a simple multi-module project, the issue does not appear. However, in the reproducer provided by @kdubb, the issue is triggered when the common project applies the sunday-generator plugin. I'm reviewing the code to identify what specifically triggers this behavior on the common-db task. If I remove the plugin from the common module, the build passes: Link to Build Scan. |
Added a first proposal solution for this issue #44399, but I will explore more options |
Is there any workaround, or should I wait for the next release? |
@nining The workaround seems to be targeting a specific module (e.g. |
Another generic workaround is to define in the root build gradle the quarkus plugin without applying it:
I tested the reproducer of this issue and with this workaround it works: It looks like the Gradle issue is gradle/gradle#17559 and it was discussed in the recent presentation https://speakerdeck.com/aurimas/gradle-the-build-system-that-loves-to-hate-you?slide=79 My proposal #44399 is still using the BuildService so won't fix entirely the issue, I'm exploring if it makes more sense to implement a different alternative to process the additional forced properties. |
@cdsap Thanks for the workaround. Fixed our behemoth of a project as well! |
Thanks for the fix 🙂👍 any chance for 3.17 instead of 3.18? |
It has a backport label set, so it will be considered. FYI @gsmet |
Describe the bug
Upgrading to 3.16.1 gives me a Gradle plugin error when attempting to build images (using Jib). The error seems to be an interaction with other plugins (specifically a code generation plugin). Although I have no idea what the issue actually is, and the same project worked in many previous versions of Quarkus.
Note that we have a pretty complex Gradle multi-module project. I have created a reproducer that captures that complexity.
Expected behavior
Gradle builds images as it did in 3.15 and previous
Actual behavior
Building images fails with:
How to Reproduce?
quarkus-complex-project.zip
Run
./gradlew -Dquarkus.container-image.build=true build
to see the error.The plugin
sundayGenerator
(see plugins section ofgradle/libs.versions.toml
) is what causes the failure once added (does not even need to be configured to do any code generation).I've recreated a basic version of that plugin @
buildSrc/src/main/kotlin/Zerox.gradle.kts
. It does all the same steps but just copies some code from a directory in the project... this plugin does not fail despite doing nearly the exact same steps as the Sunday Generator (which is visible at https://github.com/outfoxx/sunday-generator in thegradle-plugin
directory.FYI, I maintain the Sunday Generator plugin. It's up to date with the latest Gradle, and I can see no reason why it should offend the Quarkus plugin
Output of
uname -a
orver
macOS 15.0.1
Output of
java -version
Java 21
Quarkus version or git rev
3.16.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 8.9
Additional information
No response
The text was updated successfully, but these errors were encountered: