class PlatformPlugin extends java.lang.Object
OSGi platform plugin for Gradle.
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
CONF_AUX |
|
static java.lang.String |
CONF_PLATFORM |
|
static java.lang.String |
TASK_BUNDLES |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
apply(org.gradle.api.Project project) |
|
java.lang.Object |
configureEnvironment(org.gradle.api.Project project)Creates a potentialOptionalImports.txt file in the build directory of potential optional imports. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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() |
Creates a potentialOptionalImports.txt file in the build directory of potential optional imports. Unfortunately optional dependencies specified in a pom.xml file get lost in Gradle, therefore optionalImport instructions for the bnd configuration are used quite frequently. This task should help to generate the optional import statements, but please be careful since this task simply creates the optionalImport statements for each and every imported package. This means that YOU have to check yourself if the dependency is really optional. See https://github.com/stempler/bnd-platform/issues/19#issuecomment-253797523