-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: Build
-
None
Missed from gradle upgrade:
Use require rather than assert to ensure validation always run.
It looks like the validation isn’t currently being executed, because pom.withXml {} runs during the configuration phase (before the POM file is written), placing it inside a doLast block causes it to be skipped.
One alternative is to remove pom.WithXml block and parse the generated POM file directly using XmlParser, as we did previously:
val pomXml: Node = XmlParser().parse(destination)