-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
I have multi module EAR application that I am building with Gradle 9.3.1 version. I migrated this application from 7.6.x to 9.3.1 by resolving all the issues reported in the upgrade scan report.
Looks like gradle libertyDev --warning-mode all command is failing , you can find the failure below. I don't get this failure when i run with libertyRun option.
Gradle version:
gradle -version
------------------------------------------------------------
Gradle 9.3.1
------------------------------------------------------------
Build time: 2026-01-29 14:15:01 UTC
Revision: 44f4e8d3122ee6e7cbf5a248d7e20b4ca666bda3
Kotlin: 2.2.21
Groovy: 4.0.29
Ant: Apache Ant(TM) version 1.10.15 compiled on August 25 2024
Launcher JVM: 17.0.18 (Eclipse OpenJ9 17.0.18+8-openj9-0.57.0)
Daemon JVM: C:\MyData\java\ibm-semeru-certified\jdk-17.0.18+8 (no Daemon JVM specified, using current Java home)
OS: Windows 11 10.0 amd64
Here is the output from the gradle scan.
gradle help --scan --warning-mode all
> Task :help
Welcome to Gradle 9.3.1.
To run a build, run gradle <task> ...
To see a list of available tasks, run gradle tasks
To see more detail about a task, run gradle help --task <task>
To see a list of command-line options, run gradle --help
For more detail on using Gradle, see https://docs.gradle.org/9.3.1/userguide/command_line_interface.html
For troubleshooting, visit https://help.gradle.org
BUILD SUCCESSFUL in 8s
1 actionable task: 1 executed
Publishing a Build Scan to scans.gradle.com requires accepting the Gradle Terms of Use defined at https://gradle.com/help/legal-terms-of-use. Do you accept these terms? [yes, no] no
Gradle Terms of Use not accepted.
You must answer 'yes' to publish a Build Scan when prompted on the command line or accept the Gradle Terms of Use in a buildScan configuration block.
For more information, please see https://gradle.com/help/gradle-plugin-terms-of-use.
Alternatively, if you are using Develocity, specify the server location.
For more information, please see https://gradle.com/help/gradle-plugin-config.
Consider enabling configuration cache to speed up this build: https://docs.gradle.org/9.3.1/userguide/configuration_cache_enabling.html
gradle libertyDev --warning-mode all
> Task :GarageSaleLibertyEAR:libertyDev
Invocation of Task.project at execution time has been deprecated. This will fail with an error in Gradle 10. This API is incompatible with the configuration cache, which will become the only mode supported by Gradle in a future release. Consult the upgrading guide for further information: https://docs.gradle.org/9.3.1/userguide/upgrading_version_7.html#task_project
FAILURE: Build failed with an exception.
* What went wrong:
Could not find method getPath() for arguments [] on DefaultProjectDependency{identityPath=':CreditCardEJB', configuration='jarOnly'} of type org.gradle.api.internal.artifacts.dependencies.DefaultProjectDependency.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 36s
> Task :GarageSaleLibertyEAR:libertyDev FAILED
[Incubating] Problems report is available at: file:///C:/MyData/MyLTWorkspaces/GarageSale/garageSale-ee/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':GarageSaleLibertyEAR:libertyDev'.
> Could not execute build using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-8.10-bin.zip'.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights from a Build Scan (powered by Develocity).
> Get more help at https://help.gradle.org.
BUILD FAILED in 46s
1 actionable task: 1 executed
Reactions are currently unavailable