lburgazzoli / gradle-karaf-features-plugin

Apache License 2.0
4 stars 13 forks source link

Add support for capability element #31

Closed eschizoid closed 8 years ago

eschizoid commented 8 years ago

The plugin does no support the capability element, something like the following is needed when defining a feature:

<feature name="aries-blueprint" description="Aries Blueprint" version="4.0.1">
    <feature prerequisite="false" dependency="false">aries-proxy</feature>
    <bundle start-level="20">
        mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.api/1.0.1
    </bundle>
    <bundle start-level="20">
        mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.cm/1.0.6
    </bundle>
    <bundle start-level="20">
        mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core.compatibility/1.0.0
    </bundle>
    <bundle start-level="20">
        mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core/1.4.3
    </bundle>
    <conditional>
        <condition>bundle</condition>
        <bundle start-level="30">
            mvn:org.apache.karaf.bundle/org.apache.karaf.bundle.blueprintstate/4.0.1
        </bundle>
    </conditional>
    <capability>
        osgi.service;effective:=active;objectClass=org.apache.aries.blueprint.services.ParserService, osgi.extender;
        osgi.extender="osgi.blueprint";uses:="org.osgi.service.blueprint.container,org.osgi.service.blueprint.reflect";version:Version="1.0"
    </capability>
</feature>
lburgazzoli commented 8 years ago

Can you open the issue on gradle-karaf-plugin ? ;-) Do you have any idea for a nice DSL ?

eschizoid commented 8 years ago

@lburgazzoli Let me think about it :wink:

eschizoid commented 8 years ago

https://github.com/ieugen/karaf-gradle-plugin/issues/4