correct import from groovy.util.* to groovy.xml.* to fix java.lang.NoClassDefFoundError: groovy/util/XmlParser on Gradle 9 by FinlayRJW · Pull Request #1536 · palantir/palantir-java-format (original) (raw)
Before this PR
Failed on gradle 9 with:
Caused by: java.lang.NoClassDefFoundError: groovy/util/XmlParser
at com.palantir.javaformat.gradle.XmlUtils.updateIdeaXmlFile(XmlUtils.java:39)
at com.palantir.javaformat.gradle.UpdatePalantirJavaFormatIdeaXmlFile.updateXml(UpdatePalantirJavaFormatIdeaXmlFile.java:60)
After this PR
switch to using the new path groovy.xml.*
==COMMIT_MSG==
==COMMIT_MSG==
Possible downsides?
Generate changelog in changelog/@unreleased
Type (Select exactly one)
- Feature (Adding new functionality)
- Improvement (Improving existing functionality)
- Fix (Fixing an issue with existing functionality)
- Break (Creating a new major version by breaking public APIs)
- Deprecation (Removing functionality in a non-breaking way)
- Migration (Automatically moving data/functionality to a new system)
Description
correct import from groovy.util.* to groovy.xml.* to fix java.lang.NoClassDefFoundError: groovy/util/XmlParser on Gradle 9
Check the box to generate changelog(s)
- Generate changelog entry
✅ Successfully generated changelog entry!
Need to regenerate?
Simply interact with the changelog bot comment again to regenerate these entries.
🔄 Changelog entries were re-generated at Mon, 19 Jan 2026 15:05:25 UTC!
📋Changelog Preview
🐛 Fixes
- correct import from
groovy.util.*togroovy.xml.*to fixjava.lang.NoClassDefFoundError: groovy/util/XmlParseron Gradle 9 (#1536)
FinlayRJW changed the title
correct import from correct import from groovy.util.* to groovy.xml.* to fix java.lang.NoClassDefFoundError: groovy/util/XmlParsergroovy.util.* to groovy.xml.* to fix java.lang.NoClassDefFoundError: groovy/util/XmlParser on Gradle 9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})