File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
main/groovy/nl/javadude/gradle/plugins/license
test/groovy/nl/javadude/gradle/plugins/license Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ class LicenseResolver {
188
188
Configuration pomConfiguration = project. configurations. detachedConfiguration(d)
189
189
190
190
File pStream = pomConfiguration. resolve(). asList(). first()
191
- GPathResult xml = new XmlSlurper (). parse(pStream)
191
+ GPathResult xml = new XmlSlurper (true , false ). parse(pStream)
192
192
DependencyMetadata pomData = new DependencyMetadata (dependency : initialDependency)
193
193
194
194
xml. licenses. license. each {
Original file line number Diff line number Diff line change @@ -56,6 +56,23 @@ class DownloadLicensesIntegTest extends Specification {
56
56
ant. delete(dir : projectDir)
57
57
}
58
58
59
+ def " Test that poms with xlint args are handled" () {
60
+ setup :
61
+ project. dependencies {
62
+ compile " com.sun.mail:javax.mail:1.5.4"
63
+ }
64
+
65
+ when :
66
+ downloadLicenses. execute()
67
+
68
+ then :
69
+ File f = getLicenseReportFolder()
70
+ assertLicenseReportsExist(f)
71
+ dependenciesInReport(xml4LicenseByDependencyReport(f)) == 2
72
+ licensesInReport(xml4DependencyByLicenseReport(f)) == 2
73
+
74
+ }
75
+
59
76
def " Test that report generating in multi module build doesn't include unrelated subprojects dependencies" () {
60
77
setup :
61
78
subproject. dependencies {
You can’t perform that action at this time.
0 commit comments