Skip to content

Commit 1966327

Browse files
DreierFvlsi
authored andcommitted
license-gather: ignore xml namespaces when parsing POM files (see #43)
fixes #43
1 parent eda8cc0 commit 1966327

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ Change log
191191
----------
192192
v1.78
193193
* chore: bump Gradle 6.7 -> 6.9.1
194+
* license-gather: ignore xml namespaces when parsing POM files (see #43)
194195

195196
v1.77
196197
* crlf-plugin: bump jgit to 5.13.0.202109080827-r

plugins/license-gather-plugin/src/main/kotlin/com/github/vlsi/gradle/license/PomLicenseLoader.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ fun GPathResult.attr(name: String): String = get("@$name").text()
108108
@Suppress("UNCHECKED_CAST")
109109
fun GPathResult.getList(name: String) = getProperty(name) as Iterable<GPathResult>
110110

111-
private fun File.parseXml(): GPathResult = XmlSlurper().parse(this)
111+
private fun File.parseXml(): GPathResult = XmlSlurper(false, false).parse(this)
112112

113113
fun GPathResult.parsePom(): PomContents {
114114
fun GPathResult.parseId(parentGroup: String = "") =

0 commit comments

Comments
 (0)