The reason for receiving an error message after switching from Gradle 3.5 to 5.0 relating to the application of withXml() to the produced POM could be due to the change in the way Gradle handles POM generation in version 5.0. Gradle 5.0 uses a new feature called Dependency Metadata Attributes (DMA) to handle POM generation, and the withXml() method is no longer supported when using DMA.
To solve this error, you can either remove the withXml() method, or use new methods available for POM customization in DMA such as the attribute() and exclusions() methods. Alternatively, you can switch back to using the Gradle 3.5 version or an earlier version where the withXml() method is still supported.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-07-11 21:22:49 +0000
Seen: 13 times
Last updated: Jul 11 '23
How to update the outdated WebSecurityConfigurerAdapter in Spring Boot?
How can Django Admin accommodate a variety of formats and locales for its input fields?
How can an array be passed using typo3 flexform xml and itemsProcConfig?
Is it possible to invoke an asynchronous function without using the await keyword?