← All tasks
javaoshi/oshi #3708Not a task: already works

oshi-core not deployable - carries mandatory import on org.specify.annotations

envgap__oshi__oshi-3708

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
adcbdb23675332702be50aaeff4b43668142d737
Manifest
pom.xml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

oshi/oshi #3708 · read the original issue
version 7.6.0

This change [here](https://github.com/oshi/oshi/pull/3614/changes/47b5c80410f4c61898c11ae7a78ede12afe03514#diff-5d5db0e93f0921dccd33ec59f93763894e342715f6f1bf4020108526e95806bdR57) introduced jspecify for annotations.
It also correctly declared the dependency as optional and its Import-Package declaration with `resolution:=optional` in oshi-common's pom.xml.

However, oshi-core's manifest also declares the Import-Package and there the optional marker was missed.

This leads to oshi-core not being deployable in an ISGi environment withot jspecify:
```
Bundle 'mvn:com.github.oshi/oshi-core/7.6.0', referenced from feature 'ext-oshi' imports package 'org.jspecify.annotations' but no export found.
```
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]