Package com.elo.gradle.osgi
Class BundlePlugin
java.lang.Object
com.elo.gradle.osgi.BundlePlugin
- All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>
- Direct Known Subclasses:
DirectServicesPlugin,FlowsPlugin
Bundle plugin, simplifies the building of OSGI bundles.
Creates an OSGI bundle with the help of the BND tools.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.gradle.api.Project projectToApply) protected voidapplyPlugin(org.gradle.api.Project project) protected ActionFactoryReturns the factory for the Gradle actions.protected Optional<BundleConstraints> getConstraints(org.gradle.api.Project project) Returns theBundleConstraintsof the plugin.Returns the current id of the plugin.
-
Constructor Details
-
BundlePlugin
public BundlePlugin()
-
-
Method Details
-
apply
public void apply(org.gradle.api.Project projectToApply) - Specified by:
applyin interfaceorg.gradle.api.Plugin<org.gradle.api.Project>
-
applyPlugin
protected void applyPlugin(org.gradle.api.Project project) -
getPluginId
Returns the current id of the plugin.- Returns:
- the current Id of the plug-in.
-
getConstraints
Returns theBundleConstraintsof the plugin.- Returns:
- the constraints in a
Optional
-
getActionFactory
Returns the factory for the Gradle actions.- Returns:
- the factory
-