reactor-core 3.2 OSGI bundle issue io.micrometer.* is not optional #1470
Labels
type/chores
A task not related to code (build, formatting, process, ...)
Milestone
Expected behavior
When using reactor-core bundle in OSGI environment, io.micrometer.core bundle would not be required as it is an optional dependency to reactor-core.
To fix this we have to add the following line into the 'bundleImportPackages' section of build.gradle file :
'io.micrometer.*;resolution:=optional',
Actual behavior
Actually
io.micrometer.core.instrument,io.micrometer.core.instrument.binder.jvm,io.micrometer.core.instrument.composite,io.micrometer.core.instrument.search
are packages required at runtime. As micrometer bundle is not exporting those packages actually, it is impossible to run reactor-core >= 3.2 in OSGI env.Steps to reproduce
Reactor Core version
reactor-core v3.2.0 and superior
JVM version (e.g.
java -version
)java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
The text was updated successfully, but these errors were encountered: