diff --git a/build.gradle b/build.gradle index 776a5cdd1ca..21f7e3cc9a0 100644 --- a/build.gradle +++ b/build.gradle @@ -44,6 +44,9 @@ plugins { repositories { mavenCentral() // maven { url 'https://repository.apache.org/content/repositories/staging' } + maven { + url 'https://central.sonatype.com/repository/maven-snapshots/' + } } // Only add the plugin for Sonar if enabled @@ -116,7 +119,7 @@ subprojects { log4jVersion = '2.24.3' mockitoVersion = '4.11.0' hamcrestVersion = '3.0' - xmlbeansVersion = '5.3.0' + xmlbeansVersion = '5.4.0-SNAPSHOT' batikVersion = '1.19' graphics2dVersion = '3.0.3' pdfboxVersion = '3.0.5' @@ -168,6 +171,9 @@ subprojects { repositories { mavenCentral() // maven { url 'https://repository.apache.org/content/repositories/staging' } + maven { + url 'https://central.sonatype.com/repository/maven-snapshots/' + } } dependencies { diff --git a/poi-ooxml-full/build.gradle b/poi-ooxml-full/build.gradle index 4495a6c8b4d..b5449d660f3 100644 --- a/poi-ooxml-full/build.gradle +++ b/poi-ooxml-full/build.gradle @@ -34,7 +34,10 @@ sourceSets { } dependencies { - api "org.apache.xmlbeans:xmlbeans:${xmlbeansVersion}" + api ("com.github.pjfanning:xmlbeans:${xmlbeansVersion}") { + transitive = false + } + implementation "org.apache.logging.log4j:log4j-api:${log4jVersion}" } idea { diff --git a/poi-ooxml-lite-agent/build.gradle b/poi-ooxml-lite-agent/build.gradle index fef003b3274..1779fa2c771 100644 --- a/poi-ooxml-lite-agent/build.gradle +++ b/poi-ooxml-lite-agent/build.gradle @@ -24,7 +24,10 @@ sourceSets { dependencies { api 'net.bytebuddy:byte-buddy:1.17.5' api 'net.bytebuddy:byte-buddy-agent:1.17.5' - api "org.apache.xmlbeans:xmlbeans:${xmlbeansVersion}" + api ("com.github.pjfanning:xmlbeans:${xmlbeansVersion}") { + transitive = false + } + implementation "org.apache.logging.log4j:log4j-api:${log4jVersion}" } final MODULE_NAME = 'org.apache.poi.ooxml_lite' diff --git a/poi-ooxml-lite/build.gradle b/poi-ooxml-lite/build.gradle index 655b8fc32ce..9bdfea89916 100644 --- a/poi-ooxml-lite/build.gradle +++ b/poi-ooxml-lite/build.gradle @@ -34,7 +34,10 @@ sourceSets { } dependencies { - api "org.apache.xmlbeans:xmlbeans:${xmlbeansVersion}" + api ("com.github.pjfanning:xmlbeans:${xmlbeansVersion}") { + transitive = false + } + implementation "org.apache.logging.log4j:log4j-api:${log4jVersion}" compileOnly project(':poi-ooxml-full') } diff --git a/poi-ooxml/build.gradle b/poi-ooxml/build.gradle index 8a9309799b6..ba824cf60ad 100644 --- a/poi-ooxml/build.gradle +++ b/poi-ooxml/build.gradle @@ -58,7 +58,9 @@ dependencies { api project(':poi-ooxml-full') api project(path: ':poi-ooxml-full', configuration: 'archives') - api "org.apache.xmlbeans:xmlbeans:${xmlbeansVersion}" + api ("com.github.pjfanning:xmlbeans:${xmlbeansVersion}") { + transitive = false + } api "org.apache.commons:commons-compress:${commonsCompressVersion}" api "commons-io:commons-io:${commonsIoVersion}" api 'com.github.virtuald:curvesapi:1.08'