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 .

Authors:
Hans Dockter


Constructor Summary
OsgiPluginConvention(Project project)

 
Method Summary
OsgiManifest osgiManifest()

Returns a new instance of OsgiManifest.

OsgiManifest osgiManifest(groovy.lang.Closure closure)

Returns a new instance of an OsgiManifest .

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Constructor Detail

OsgiPluginConvention

public OsgiPluginConvention(Project project)


 
Method Detail

osgiManifest

public OsgiManifest osgiManifest()
Returns 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(groovy.lang.Closure closure)
Returns a new instance of an OsgiManifest . The closure configures the new manifest instance before it is returned.


 

Groovy Documentation