Skip to content

Commit aa83551

Browse files
committed
workaround for jdom bug (dom4j/dom4j#99) - library consumers using Gradle 6+ will have issues with JAXB resolution, causing confusing errors in their applications
1 parent 8a17bf9 commit aa83551

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,16 @@ dependencies {
6464
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
6565
}
6666
implementation 'commons-codec:commons-codec:1.15'
67-
implementation 'org.dom4j:dom4j:2.1.3'
67+
implementation('org.dom4j:dom4j:2.1.3') {
68+
// workaround for jdom2 bug (https://github.com/dom4j/dom4j/issues/99)
69+
// NOTE: a component metadata rule will not solve the problem for library consumers - this is the only way
70+
exclude module: 'pull-parser'
71+
exclude module: 'jaxen'
72+
exclude module: 'xpp3'
73+
exclude module: 'xsdlib'
74+
exclude module: 'stax-api'
75+
exclude module: 'jaxb-api'
76+
}
6877
implementation 'org.slf4j:slf4j-api:1.7.32'
6978
testImplementation 'junit:junit:4.13.2'
7079
testRuntimeOnly 'org.slf4j:jcl-over-slf4j:1.7.32'

0 commit comments

Comments
 (0)