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

pjfanning pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi-xmlbeans.git


The following commit(s) were added to refs/heads/trunk by this push:
     new bc335767 only run animalsniffer on the main source set
bc335767 is described below

commit bc3357676386c0a24c6ba6bf4dcbccfdc3c4ce66
Author: PJ Fanning <[email protected]>
AuthorDate: Mon Nov 16 02:03:52 2026 +0100

    only run animalsniffer on the main source set
    
    The Android API signature only matters for code we ship. The tests use
    JDK-only APIs (com.sun.net.httpserver in ParseUrlRedirectTest,
    ClassLoader.getPlatformClassLoader in StaticInitializationRingTest), so
    checking them only produced false failures.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 build.gradle | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/build.gradle b/build.gradle
index fd343700..ff37020d 100644
--- a/build.gradle
+++ b/build.gradle
@@ -816,18 +816,14 @@ Set<File> xsdDirs(File parent) {
     return xsdDirs
 }
 
+// The Android API signature only makes sense for code we ship, so the tests 
(which use
+// JDK-only APIs such as com.sun.net.httpserver and 
ClassLoader.getPlatformClassLoader)
+// are not checked.
 animalsniffer {
-    //sourceSets = [sourceSets.main]
+    sourceSets = [sourceSets.main]
     ignore 'javax.xml.stream.*'
     ignore 'javax.xml.namespace.*'
     // only used by the maven plugin, which never runs on Android
     ignore 'javax.xml.catalog.*'
 }
 
-// The Android API signature only makes sense for code we ship. 
ParseUrlRedirectTest
-// runs a loopback com.sun.net.httpserver server, which is JDK-only and never 
leaves
-// the test source set.
-animalsnifferTest {
-    exclude '**/ParseUrlRedirectTest*'
-}
-


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to