From 8bfb4c015f7c4e25a6ec59625185447e41ba5089 Mon Sep 17 00:00:00 2001 From: Florian Dreier Date: Mon, 3 Jan 2022 13:22:08 +0100 Subject: [PATCH] Fixes #43 --- .../kotlin/com/github/vlsi/gradle/license/PomLicenseLoader.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/license-gather-plugin/src/main/kotlin/com/github/vlsi/gradle/license/PomLicenseLoader.kt b/plugins/license-gather-plugin/src/main/kotlin/com/github/vlsi/gradle/license/PomLicenseLoader.kt index 9108a1d..800c9cd 100644 --- a/plugins/license-gather-plugin/src/main/kotlin/com/github/vlsi/gradle/license/PomLicenseLoader.kt +++ b/plugins/license-gather-plugin/src/main/kotlin/com/github/vlsi/gradle/license/PomLicenseLoader.kt @@ -108,7 +108,7 @@ fun GPathResult.attr(name: String): String = get("@$name").text() @Suppress("UNCHECKED_CAST") fun GPathResult.getList(name: String) = getProperty(name) as Iterable -private fun File.parseXml(): GPathResult = XmlSlurper().parse(this) +private fun File.parseXml(): GPathResult = XmlSlurper(false, false).parse(this) fun GPathResult.parsePom(): PomContents { fun GPathResult.parseId(parentGroup: String = "") =