Ask Your Question
0

What is the reason for receiving an error message after switching from Gradle 3.5 to 5.0, specifically relating to the application of withXml() to the produced POM?

asked 2023-07-11 21:22:49 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-07-11 21:46:02 +0000

huitzilopochtli gravatar image

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.

edit flag offensive delete link more

Your Answer

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

Add Answer


Question Tools

Stats

Asked: 2023-07-11 21:22:49 +0000

Seen: 13 times

Last updated: Jul 11 '23