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)

@FinlayRJW

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?

@FinlayRJW

@changelog-app

Generate changelog in changelog/@unreleased

Type (Select exactly one)

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)

@changelog-app

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

@FinlayRJW FinlayRJW changed the titlecorrect 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

CRogers

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 }})