Groovy Documentation

org.gradle.api.plugins.osgi
[Java] Class OsgiPluginConvention

java.lang.Object
  org.gradle.api.plugins.osgi.OsgiPluginConvention

public class OsgiPluginConvention

Is mixed in into the project when applying the OsgiPlugin .


Constructor Summary
OsgiPluginConvention(ProjectInternal project)

 
Method Summary
OsgiManifest osgiManifest()

Creates a new instance of OsgiManifest.

OsgiManifest osgiManifest(Closure closure)

Creates and configures a new instance of an OsgiManifest .

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

OsgiPluginConvention

public OsgiPluginConvention(ProjectInternal project)


 
Method Detail

osgiManifest

public OsgiManifest osgiManifest()
Creates a new instance of 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


osgiManifest

public OsgiManifest osgiManifest(Closure closure)
Creates and configures a new instance of an OsgiManifest . The closure configures the new manifest instance before it is returned.


 

Gradle API 1.12