Skip to content

correct import from groovy.util.* to groovy.xml.* to fix java.lang.NoClassDefFoundError: groovy/util/XmlParser on Gradle 9#1536

Merged
bulldozer-bot[bot] merged 1 commit intodevelopfrom
gradle-9
Jan 19, 2026
Merged

correct import from groovy.util.* to groovy.xml.* to fix java.lang.NoClassDefFoundError: groovy/util/XmlParser on Gradle 9#1536
bulldozer-bot[bot] merged 1 commit intodevelopfrom
gradle-9

Conversation

@FinlayRJW
Copy link
Contributor

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?

@changelog-app
Copy link

changelog-app bot commented Jan 19, 2026

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

@changelog-app
Copy link

changelog-app bot commented Jan 19, 2026

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.* to groovy.xml.* to fix java.lang.NoClassDefFoundError: groovy/util/XmlParser on Gradle 9 (#1536)

@FinlayRJW FinlayRJW changed the title correct import from groovy.util.* to groovy.xml.* to fix java.lang.NoClassDefFoundError: groovy/util/XmlParser correct import from groovy.util.* to groovy.xml.* to fix java.lang.NoClassDefFoundError: groovy/util/XmlParser on Gradle 9 Jan 19, 2026
@bulldozer-bot bulldozer-bot bot merged commit 8307194 into develop Jan 19, 2026
7 checks passed
@bulldozer-bot bulldozer-bot bot deleted the gradle-9 branch January 19, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants