api / org.gradle.api.plugins.osgi / OsgiPluginConvention

OsgiPluginConvention

open class OsgiPluginConvention

Is mixed into the project when applying the org.gradle.api.plugins.osgi.OsgiPlugin.

Constructors

<init>

OsgiPluginConvention(project: ProjectInternal)

Functions

osgiManifest

open fun osgiManifest(): OsgiManifest

Creates a new instance of org.gradle.api.plugins.osgi.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
  • 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

open fun osgiManifest(closure: Closure<Any>): OsgiManifest

Creates and configures a new instance of an org.gradle.api.plugins.osgi.OsgiManifest . The closure configures the new manifest instance before it is returned.

open fun osgiManifest(action: Action<in OsgiManifest>): OsgiManifest

Creates and configures a new instance of an org.gradle.api.plugins.osgi.OsgiManifest. The action configures the new manifest instance before it is returned.