Package org.gradle.api.plugins.osgi
Class OsgiPluginConvention
java.lang.Object
org.gradle.api.plugins.osgi.OsgiPluginConvention
Is mixed into the project when applying the
OsgiPlugin
.-
Constructor Summary
ConstructorDescriptionOsgiPluginConvention
(org.gradle.api.internal.project.ProjectInternal project) -
Method Summary
Modifier and TypeMethodDescriptionCreates a new instance ofOsgiManifest
.osgiManifest
(Closure closure) Creates and configures a new instance of anOsgiManifest
.osgiManifest
(Action<? super OsgiManifest> action) Creates and configures a new instance of anOsgiManifest
.
-
Constructor Details
-
OsgiPluginConvention
public OsgiPluginConvention(org.gradle.api.internal.project.ProjectInternal project)
-
-
Method Details
-
osgiManifest
Creates a new instance ofOsgiManifest
. The returned object is preconfigured with:version: project.version name: project.archivesBaseName symbolicName: project.group + "." + project.archivesBaseName (see below for exceptions to this rule)
The symbolic name is usually the group + "." + archivesBaseName, with the following exceptions- if group has only one section (no dots) and archivesBaseName is not null then the first package name with classes is returned. eg. commons-logging:commons-logging -> org.apache.commons.logging
- if archivesBaseName is equal to last section of group then group is returned. eg. org.gradle:gradle -> org.gradle
- if archivesBaseName starts with last section of group that portion is removed. eg. org.gradle:gradle-core -> org.gradle.core
-
osgiManifest
Creates and configures a new instance of anOsgiManifest
. The closure configures the new manifest instance before it is returned. -
osgiManifest
Creates and configures a new instance of anOsgiManifest
. The action configures the new manifest instance before it is returned.- Since:
- 3.5
-