public class OsgiPluginConvention extends Object
OsgiPlugin
.Constructor and Description |
---|
OsgiPluginConvention(org.gradle.api.internal.project.ProjectInternal project)
Deprecated.
Creating instances of this class is deprecated. These should be created by the OSGi plugin only.
|
Modifier and Type | Method and Description |
---|---|
OsgiManifest |
osgiManifest()
Creates a new instance of
OsgiManifest . |
OsgiManifest |
osgiManifest(Action<? super OsgiManifest> action)
Creates and configures a new instance of an
OsgiManifest . |
OsgiManifest |
osgiManifest(Closure closure)
Creates and configures a new instance of an
OsgiManifest . |
@Deprecated public OsgiPluginConvention(org.gradle.api.internal.project.ProjectInternal project)
OsgiPluginConvention
instance.public OsgiManifest osgiManifest()
OsgiManifest
. 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
public OsgiManifest osgiManifest(Closure closure)
OsgiManifest
. The closure configures
the new manifest instance before it is returned.public OsgiManifest osgiManifest(Action<? super OsgiManifest> action)
OsgiManifest
. The action configures
the new manifest instance before it is returned.