Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-2852: SolrJ: remove Woodstox dependency (#2461)

David Smileycf1025e576a6
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index b864471d9d2..9f2ee9ff4f8 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -91,6 +91,10 @@ when told to. The admin UI now tells it to. (Nazerke Seidan, David Smiley)
* SOLR-15185: Various optimizations to the {!hash} QParser, typically used by the parallel()
streaming expression. The hash algorithm changed. (David Smiley)
+* SOLR-2852: SolrJ: remove Woodstox dependency. It was never truly required there.
+ Software doing lots of XML processing can choose to add it or alternatives if they wish.
+ (David Smiley)
+
Other Changes
----------------------
* SOLR-14656: Autoscaling framework removed (Ishan Chattopadhyaya, noble, Ilan Ginzburg)
diff --git a/solr/core/build.gradle b/solr/core/build.gradle
index 8af854d36a0..34214e6f0e3 100644
--- a/solr/core/build.gradle
+++ b/solr/core/build.gradle
@@ -118,6 +118,11 @@ dependencies {
implementation 'org.rrd4j:rrd4j'
+ // For faster XML processing than the JDK
+ implementation ('org.codehaus.woodstox:woodstox-core-asl', {
+ exclude group: "javax.xml.stream", module: "stax-api"
+ })
+
implementation ('org.apache.calcite.avatica:avatica-core') { transitive = false }
implementation ('org.apache.calcite:calcite-core') { transitive = false }
implementation ('org.apache.calcite:calcite-linq4j') { transitive = false }
diff --git a/solr/solrj/build.gradle b/solr/solrj/build.gradle
index 7dfd3cb1847..a7f33154629 100644
--- a/solr/solrj/build.gradle
+++ b/solr/solrj/build.gradle
@@ -55,10 +55,6 @@ dependencies {
exclude group: "org.slf4j", module: "slf4j-log4j12"
})
- api('org.codehaus.woodstox:woodstox-core-asl', {
- exclude group: "javax.xml.stream", module: "stax-api"
- })
-
testImplementation project(':solr:test-framework')
testImplementation 'org.eclipse.jetty:jetty-webapp'
testImplementation ('org.eclipse.jetty:jetty-alpn-java-server', {