Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
QtGP 1.1
-
47d36b15f (dev)
Description
Steps to reproduce:
- Browse to qtquickview_kotlin directory
- gradle build -Dorg.gradle.java.home=$JAVA_HOME
Expected results:
Builds succeeds
Actual results:
Build fails with QtBuild dependency problem.
> Task :app:generateReleaseLintVitalReportModel FAILEDFAILURE: Build failed with an exception.* What went wrong: A problem was found with the configuration of task ':app:generateReleaseLintVitalReportModel' (type 'LintModelWriterTask'). - Gradle detected a problem with the following location: '/Users/ollivuolteenaho/RTA/Qt_6.8.0/Examples/Qt-6.8.0/platforms/android/qtquickview_kotlin/app/build/qt_generated/qtquickview/android-build-qtquickview/qtquickview.aar'. Reason: Task ':app:generateReleaseLintVitalReportModel' uses this output of task ':app:QtBuildTask' 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 ':app:QtBuildTask' as an input of ':app:generateReleaseLintVitalReportModel'. 2. Declare an explicit dependency on ':app:QtBuildTask' from ':app:generateReleaseLintVitalReportModel' using Task#dependsOn. 3. Declare an explicit dependency on ':app:QtBuildTask' from ':app:generateReleaseLintVitalReportModel' using Task#mustRunAfter. For more information, please refer to https://docs.gradle.org/8.10/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
Attachments
Issue Links
For Gerrit Dashboard: QTTA-215 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
603593,2 | Fix Gradle build failure in Kotling projects when running from CLI | dev | qt-labs/qtgradleplugin | Status: MERGED | +2 | 0 |