Extension for the platform plugin.
| Modifiers | Name | Description |
|---|---|---|
static groovy.lang.Closure |
ADLER32 |
Hash calculator using the Adler32 checksum algorithm. |
static int |
DAY |
|
static groovy.lang.Closure |
MAJOR |
Version strategy that requires a minimum version and extends to (not including) the next major version. |
static int |
MILLISECOND |
|
static groovy.lang.Closure |
MINIMUM |
Version strategy that uses the given version as minimum version. |
static groovy.lang.Closure |
MINOR |
Version strategy that requires a minimum version and extends to (not including) the next minor version. |
static int |
MINUTE |
|
static int |
MONTH |
|
static groovy.lang.Closure |
NONE |
Version strategy that uses no version constraint for imports. |
static int |
SECOND |
|
static int |
YEAR |
| Type | Name and description |
|---|---|
boolean |
addBndPlatformManifestHeadersStates if bnd-platform specific manifest headers should be added. |
java.util.Map<java.lang.String, BundleArtifact> |
artifactsMaps artifact IDs to BundleArtifacts |
boolean |
auxVersionedSymbolicNamesStates if the symbolic names for bundles created via the platformaux configuration should be adapted to include the version number. |
java.lang.String |
categoryIdThe ID of the feature's category in the update site. |
java.lang.String |
categoryNameThe name of the feature's category in the update site. |
Configurations |
configurationsStores bnd configurations. |
java.lang.String |
defaultQualifierThe default version qualifier to use for wrapped bundles. |
java.lang.Object |
defaultQualifierMapDefault qualifier map configuration. |
boolean |
determineImportVersionsStates if the package import versions for automatically wrapped bundles should be determined automatically. |
java.io.File |
downloadsDirThe directory to store the downloaded Eclipse installation on local, this works if eclipseHome is not specified.
|
java.io.File |
eclipseHomeThe directory of a local Eclipse installation. |
java.lang.Object |
eclipseMirror4.8 MB *.tar.gz file, which contains the minimal setup of eclipse plug-ins, which are necessary to build an eclipse p2 update site. |
boolean |
extractPomInformationStates if additional configuration information from POM is desired. |
java.lang.String |
featureIdThe ID for the platform feature. |
java.lang.String |
featureNameThe name for the platform feature. |
java.lang.String |
featureProviderFeature provider name. |
java.lang.String |
featureVersionThe platform feature version, defaults to the project version if possible, otherwise to 1.0.0. |
java.util.Map<java.lang.String, Feature> |
featuresMaps feature IDs to Features |
boolean |
fetchSourcesStates if source for external dependencies should be fetched and corresponding source bundles created. |
boolean |
generatePlatformFeatureStates if a general feature should be created. |
groovy.lang.Closure |
hashCalculatorPrefix for qualifiers generated by the default qualifier map. |
java.lang.Object |
hashQualifierMapMap that is used to have reproducable increasing version numbers for bundles and features when using hash qualifiers. |
java.util.Set<java.lang.String> |
importIgnorePackagesPackages to ignore when analyzing packages of dependencies to determine package import version numbers. |
groovy.lang.Closure |
importVersionStrategyDefines the global import version strategy. |
org.gradle.api.Project |
project |
boolean |
removeSignaturesFromWrappedBundlesStates if signatures should be removed from wrapped bundles. |
java.io.File |
updateSiteDirThe directory to place the update site in. |
java.io.File |
updateSiteZipFileThe target file for the 'updateSiteZip' task. |
boolean |
useBndHashQualifiersStates if bundle version qualifiers should be tagged with hashes calculated from the bnd configuration. |
boolean |
useFeatureHashQualifiersStates if for features a qualifier should be added based on the included plugins and features. |
| Constructor and description |
|---|
PlatformPluginExtension
(org.gradle.api.Project project) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Object |
bnd(java.lang.Object dependencyNotation, groovy.lang.Closure bndClosure)Call bnd to configure artifact, but don't add as dependency. |
|
java.lang.Object |
bnd(groovy.lang.Closure bndClosure)Call bnd to extend/overwrite the default bnd configuration for all bundles. |
|
java.lang.Object |
bundle(java.lang.Object dependencyNotation, groovy.lang.Closure configClosure = null)Call bundle to add a dependency. |
|
java.lang.Object |
feature(java.lang.Object featureNotation, groovy.lang.Closure featureClosure)Call feature to create a feature configuration. |
|
void |
imports(java.lang.Object dependencyNotation, groovy.lang.Closure importsClosure)Call to configure the behaviour for other bundles importing a given dependency. |
|
java.lang.Object |
merge(java.util.Map<java.lang.String, java.lang.Object> properties = [failOnDuplicate: true, groovy.lang.Closure mergeClosure)Call merge to create bundle that is merged from different dependencies. |
|
java.lang.Object |
override(groovy.lang.Closure bndClosure)Call to override the behavior for all created bundles, even existing bundles. |
| 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() |
Hash calculator using the Adler32 checksum algorithm.
Version strategy that requires a minimum version and extends to (not including) the next major version.
Version strategy that uses the given version as minimum version.
Version strategy that requires a minimum version and extends to (not including) the next minor version.
Version strategy that uses no version constraint for imports.
States if bnd-platform specific manifest headers should be added. Currently those headers serve the following purposes:
Maps artifact IDs to BundleArtifacts
States if the symbolic names for bundles created via the platformaux configuration should be adapted to include the version number. This is useful when dealing with systems that have problems when there actually are bundles with the same name but different versions. An example is Eclipse RCP plugin-based products - they can include only one version of a bundle with the same name.
The ID of the feature's category in the update site.
The name of the feature's category in the update site.
Stores bnd configurations.
The default version qualifier to use for wrapped bundles. If a qualifier is already
present the default will be appended, separated by a dash.
Please note that this does not apply to file based dependencies automatically
(otherwise it might mess with existing source bundle associations). Set addQualifier
to true in the corresponding bnd configuration to enable it for a
file based dependency.
Default qualifier map configuration.
States if the package import versions for automatically wrapped bundles should be determined automatically. This also will by default make package imports optional that are not found in dependencies.
The directory to store the downloaded Eclipse installation on local,
this works if eclipseHome is not specified.
Default to project.buildDir/eclipse-downloads.
The directory of a local Eclipse installation. If none is specified the
ECLIPSE_HOME system property is checked, if it is not given as
well it is tried to download Eclipse based on the URLs defined in eclipseMirror
4.8 MB *.tar.gz file, which contains the minimal setup of eclipse plug-ins, which are necessary to build an eclipse p2 update site.
States if additional configuration information from POM is desired.
The ID for the platform feature.
The name for the platform feature.
Feature provider name.
The platform feature version, defaults to the project version if possible, otherwise to 1.0.0.
Maps feature IDs to Features
States if source for external dependencies should be fetched and corresponding source bundles created.
States if a general feature should be created. By default it's turned on and called Generated platform feature. In case custom features are generated you might not want to have an additional "generated platform feature" besides your own features.
Prefix for qualifiers generated by the default qualifier map.
Map that is used to have reproducable increasing version numbers for bundles and features when using hash qualifiers. The hash qualifiers are mapped to a date and time based qualifier to ensure that changes to bundles and features that have the same version number are not only reflected in the qualifier but also produce versions that are interpreted as newer than the previous versions in the OSGi sense. The map needs to be persisted, thus it may be specified as
Packages to ignore when analyzing packages of dependencies to determine package import version numbers.
Defines the global import version strategy. The strategy is a closure taking an OSGi version number and returning a version assignment for bnd as String.
States if signatures should be removed from wrapped bundles.
The directory to place the update site in. Will default to 'updatesite' in the build folder.
The target file for the 'updateSiteZip' task.
States if bundle version qualifiers should be tagged with hashes calculated from the bnd configuration. Overrides the default qualifier for bundles where a bnd configuration is present. Please note that this does not apply to file based dependencies (otherwise it might mess with existing source bundle associations).
States if for features a qualifier should be added based on the included plugins and features. This serves to prevent caching issues when there are minor changes to a feature.
Call bnd to configure artifact, but don't add as dependency.
dependencyNotation - a dependency notation as supported by GradlebndClosure - a closure that specifying the custom bnd configurationCall bnd to extend/overwrite the default bnd configuration for all bundles. Note that the default configuration does not apply to Jars that already were bundles.
Call bundle to add a dependency.
dependencyNotation - a dependency notation as supported by GradleconfigClosure - a closure that performs dependency configurationCall feature to create a feature configuration.
featureNotation - feature notation is either a feature ID (String) or a map
containing with at least the id key set to the desired feature ID.
Optional additional keys are name (the human readable feature name),
version (the feature version, default is the main feature version)
and provider (the feature provider name)featureClosure - the closure configuring the feature contentCall to configure the behaviour for other bundles importing a given dependency.
dependencyNotation - the dependency notationimportsClosure - the imports configuration closureCall merge to create bundle that is merged from different dependencies.
mergeClosure - the merge closure, specifying a match and bnd configurationCall to override the behavior for all created bundles, even existing bundles. Use with care.
Groovy Documentation