SOLR-2852: SolrJ: remove Woodstox dependency (#2461)
It was never truly required there.
Pervasive use of "javabin" reduces the need to care about client-side XML speed. Better to reduce dependencies and let clients use the libs they want.
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index b864471..9f2ee9f 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -91,6 +91,10 @@
* 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 8af854d..34214e6 100644
--- a/solr/core/build.gradle
+++ b/solr/core/build.gradle
@@ -118,6 +118,11 @@
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 7dfd3cb..a7f3315 100644
--- a/solr/solrj/build.gradle
+++ b/solr/solrj/build.gradle
@@ -55,10 +55,6 @@
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', {