This is an automated email from the ASF dual-hosted git repository.

tballison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/main by this push:
     new c486606602 TIKA-5058: don't force a log4j backend on library consumers 
(#3563)
c486606602 is described below

commit c4866066021285fbeb5a476060138fc8e9407001
Author: Tim Allison <[email protected]>
AuthorDate: Fri Nov 6 16:10:39 2026 -0500

    TIKA-5058: don't force a log4j backend on library consumers (#3563)
---
 CHANGES.txt                                                          | 4 ++++
 tika-integration-tests/tika-pipes-es-integration-tests/pom.xml       | 5 +++++
 .../tika-pipes-opensearch-integration-tests/pom.xml                  | 5 +++++
 tika-integration-tests/tika-pipes-solr-integration-tests/pom.xml     | 5 +++++
 tika-langdetect/tika-langdetect-lingo24/pom.xml                      | 1 +
 tika-langdetect/tika-langdetect-mitll-text/pom.xml                   | 1 +
 tika-pipes/pom.xml                                                   | 2 ++
 tika-pipes/tika-pipes-config-store-ignite/pom.xml                    | 1 +
 8 files changed, 24 insertions(+)

diff --git a/CHANGES.txt b/CHANGES.txt
index dc601f9c39..b5804055c7 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,6 +2,10 @@ Release 4.3.0 - ???
 
   BREAKING CHANGES AND DEPRECATIONS
 
+   * tika-pipes-* and two tika-langdetect modules no longer pull in a log4j 
backend;
+     embedding apps (and their PipesServer forks) must add an slf4j binding, 
e.g.
+     log4j-slf4j2-impl (TIKA-5058).
+
    * Markdown output writes math as $`...`$ (a code span, which GitHub and 
GitLab
      render as math) instead of raw $...$, so text in a math span can no 
longer become
      HTML or links. Readers that only know $...$, such as pandoc, show it as 
code. Only
diff --git a/tika-integration-tests/tika-pipes-es-integration-tests/pom.xml 
b/tika-integration-tests/tika-pipes-es-integration-tests/pom.xml
index 35f8e31e5c..06834d62ab 100644
--- a/tika-integration-tests/tika-pipes-es-integration-tests/pom.xml
+++ b/tika-integration-tests/tika-pipes-es-integration-tests/pom.xml
@@ -29,6 +29,11 @@
   <name>Apache Tika Elasticsearch integration tests</name>
 
   <dependencies>
+    <dependency>
+      <groupId>org.apache.logging.log4j</groupId>
+      <artifactId>log4j-slf4j2-impl</artifactId>
+      <scope>test</scope>
+    </dependency>
     <dependency>
       <groupId>${project.groupId}</groupId>
       <artifactId>tika-app</artifactId>
diff --git 
a/tika-integration-tests/tika-pipes-opensearch-integration-tests/pom.xml 
b/tika-integration-tests/tika-pipes-opensearch-integration-tests/pom.xml
index 67bed7eea6..a565350ee9 100644
--- a/tika-integration-tests/tika-pipes-opensearch-integration-tests/pom.xml
+++ b/tika-integration-tests/tika-pipes-opensearch-integration-tests/pom.xml
@@ -29,6 +29,11 @@
   <name>Apache Tika OpenSearch integration tests</name>
 
   <dependencies>
+    <dependency>
+      <groupId>org.apache.logging.log4j</groupId>
+      <artifactId>log4j-slf4j2-impl</artifactId>
+      <scope>test</scope>
+    </dependency>
     <dependency>
       <groupId>${project.groupId}</groupId>
       <artifactId>tika-app</artifactId>
diff --git a/tika-integration-tests/tika-pipes-solr-integration-tests/pom.xml 
b/tika-integration-tests/tika-pipes-solr-integration-tests/pom.xml
index debd8d9804..8cf6f3686b 100644
--- a/tika-integration-tests/tika-pipes-solr-integration-tests/pom.xml
+++ b/tika-integration-tests/tika-pipes-solr-integration-tests/pom.xml
@@ -29,6 +29,11 @@
   <name>Apache Tika Apache Solr integration tests</name>
 
   <dependencies>
+    <dependency>
+      <groupId>org.apache.logging.log4j</groupId>
+      <artifactId>log4j-slf4j2-impl</artifactId>
+      <scope>test</scope>
+    </dependency>
     <dependency>
       <groupId>org.testcontainers</groupId>
       <artifactId>testcontainers</artifactId>
diff --git a/tika-langdetect/tika-langdetect-lingo24/pom.xml 
b/tika-langdetect/tika-langdetect-lingo24/pom.xml
index 027e8b9396..d93091182c 100644
--- a/tika-langdetect/tika-langdetect-lingo24/pom.xml
+++ b/tika-langdetect/tika-langdetect-lingo24/pom.xml
@@ -51,6 +51,7 @@
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-slf4j2-impl</artifactId>
+      <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>${project.groupId}</groupId>
diff --git a/tika-langdetect/tika-langdetect-mitll-text/pom.xml 
b/tika-langdetect/tika-langdetect-mitll-text/pom.xml
index d3f9735fd1..384d2698bf 100644
--- a/tika-langdetect/tika-langdetect-mitll-text/pom.xml
+++ b/tika-langdetect/tika-langdetect-mitll-text/pom.xml
@@ -50,6 +50,7 @@
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-slf4j2-impl</artifactId>
+      <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>${project.groupId}</groupId>
diff --git a/tika-pipes/pom.xml b/tika-pipes/pom.xml
index b9cf0bab7c..e9eb36feeb 100644
--- a/tika-pipes/pom.xml
+++ b/tika-pipes/pom.xml
@@ -45,10 +45,12 @@
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-core</artifactId>
+      <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-slf4j2-impl</artifactId>
+      <scope>test</scope>
     </dependency>
   </dependencies>
   <build>
diff --git a/tika-pipes/tika-pipes-config-store-ignite/pom.xml 
b/tika-pipes/tika-pipes-config-store-ignite/pom.xml
index 76de0b33f3..bca3022e1e 100644
--- a/tika-pipes/tika-pipes-config-store-ignite/pom.xml
+++ b/tika-pipes/tika-pipes-config-store-ignite/pom.xml
@@ -83,6 +83,7 @@
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-slf4j2-impl</artifactId>
+      <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.apache.ignite</groupId>

Reply via email to