-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Milestone
Description
Describe the bug
When trying to upgrade to gradle 9.0.0, I get following error:
...
> Task :forbiddenApisIntegrationTest
> Task :forbiddenApisMain
> Task :compileNativeTestJava NO-SOURCE
> Task :processNativeTestResources NO-SOURCE
> Task :nativeTestClasses UP-TO-DATE
> Task :forbiddenApisNativeTest NO-SOURCE
> Task :compileQuarkusGeneratedSourcesJava FAILED
[Incubating] Problems report is available at: file:///Users/adrianpauli/qumea/git/portal-backend/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.0.0/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
21 actionable tasks: 21 executed
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':compileQuarkusGeneratedSourcesJava' (type 'JavaCompile').
- Gradle detected a problem with the following location: '...'.
Reason: Task ':compileJava' uses this output of task ':compileQuarkusGeneratedSourcesJava' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Possible solutions:
1. Declare task ':compileQuarkusGeneratedSourcesJava' as an input of ':compileJava'.
2. Declare an explicit dependency on ':compileQuarkusGeneratedSourcesJava' from ':compileJava' using Task#dependsOn.
3. Declare an explicit dependency on ':compileQuarkusGeneratedSourcesJava' from ':compileJava' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/9.0.0/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
* Try:
> Declare task ':compileQuarkusGeneratedSourcesJava' as an input of ':compileJava'
> Declare an explicit dependency on ':compileQuarkusGeneratedSourcesJava' from ':compileJava' using Task#dependsOn
> Declare an explicit dependency on ':compileQuarkusGeneratedSourcesJava' from ':compileJava' using Task#mustRunAfter
> Run with --scan to generate a Build Scan (Powered by Develocity).
BUILD FAILED in 35s
09:06:38: Execution finished 'clean build quarkusBuild'.
This happens not in all project, but in about half of our projects. I'm not yet sure what is the difference between this and the other project. Maybe you have a hint were to look so that I can create a reproducer.
Expected behavior
It should build with gradle 9 similar to gradle 8
Actual behavior
Follwoing error occures:
* What went wrong:
A problem was found with the configuration of task ':compileQuarkusGeneratedSourcesJava' (type 'JavaCompile').
- Gradle detected a problem with the following location: '...'.
Reason: Task ':compileJava' uses this output of task ':compileQuarkusGeneratedSourcesJava' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Possible solutions:
1. Declare task ':compileQuarkusGeneratedSourcesJava' as an input of ':compileJava'.
2. Declare an explicit dependency on ':compileQuarkusGeneratedSourcesJava' from ':compileJava' using Task#dependsOn.
3. Declare an explicit dependency on ':compileQuarkusGeneratedSourcesJava' from ':compileJava' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/9.0.0/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
How to Reproduce?
It happens, when I run gradlew build quarkusBuild
Output of uname -a
or ver
No response
Output of java -version
21
Quarkus version or git rev
3.25.x & 3.26.0.CR1
Build tool (ie. output of mvnw --version
or gradlew --version
)
gradlew 9.0.0
Additional information
No response
amaechler and brianwyka