Skip to content

Make OSGi Declaritive Services optional #3267

@msqr

Description

@msqr

The OSGi metadata generated for the Ehcache jar mandates the use of Declarative Services with this output:

Require-Capability: osgi.extender;filter:="(&(osgi.extender=osgi.compo
 nent)(version>=1.3.0)(!(version>=2.0.0)))",osgi.ee;filter:="(&(osgi.e
 e=JavaSE)(version=1.8))"

However the use of Declarative Services is not required at runtime, and this Require-Capability metadata prevents Ehcache from loading in OSGi when a Declarative Services runtime is not present. Could this Require-Capability metadata be removed? For example by adding

instruction Constants.REMOVEHEADERS, 'Require-Capability'

to ehcache/build.gradle?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions