pjfanning opened a new pull request, #118:
URL: https://github.com/apache/poi-xmlbeans/pull/118

   `ParseUrlRedirectTest`, added in #113, starts a `com.sun.net.httpserver` 
server on loopback to pin redirect following in 
`SchemaTypeLoaderBase.parse(URL)`. That package is not part of the Android API 
signature (`gummy-bears-api-${androidSdkMinimum}`) animalsniffer checks 
against, so `animalsnifferTest` reports 19 undefined references and `./gradlew 
check` fails on trunk:
   
   ```
   > 19 AnimalSniffer violations were found in 1 files.
   org.apache.xmlbeans.impl.schema.ParseUrlRedirectTest:38  Undefined 
reference: com.sun.net.httpserver.HttpServer 
com.sun.net.httpserver.HttpServer.create(...)
   ...
   ```
   
   My fault — I added that test without running `check`. Apologies for the 
breakage.
   
   The signature describes what the *published artifact* may use. Test code 
never ships and never runs on Android, so this excludes the one file rather 
than weakening the signature for `main`:
   
   ```groovy
   animalsnifferTest {
       exclude '**/ParseUrlRedirectTest*'
   }
   ```
   
   Excluding the whole test source set would also work — the `animalsniffer` 
block already carries a commented-out `sourceSets = [sourceSets.main]` for 
exactly that — but this keeps the rest of the tests covered. Happy to switch to 
the broader form if you'd prefer it.
   
   `./gradlew animalsnifferTest animalsnifferMain` passes; the task still runs, 
with only that file filtered out.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to