aem-plugin / com.cognifide.gradle.aem.bundle.tasks / BundleCompose

BundleCompose

open class BundleCompose : Jar, AemTask

Constructors

<init>

BundleCompose()

Properties

activator

var activator: String?

aem

val aem: AemExtension

attributes

var attributes: MutableMap<String, Any?>

attributesConvention

Enable or disable support for auto-generating OSGi specific JAR manifest attributes like 'Bundle-SymbolicName', 'Export-Package' or AEM specific like 'Sling-Model-Packages' using 'javaPackage' property.

var attributesConvention: Boolean

bundleConvention

val bundleConvention: BundleTaskConvention

category

var category: String?

composedDir

Shorthand for directory of built OSGi bundle file.

val composedDir: File

composedFile

Shorthand for built OSGi bundle file.

val composedFile: File

contributors

var contributors: String?

copyright

var copyright: String?

developers

var developers: String?

displayName

var displayName: String?

docUrl

var docUrl: String?

exportPackages

var exportPackages: List<String>

fragmentHost

var fragmentHost: String?

importPackages

var importPackages: List<String>

installPath

Content path for OSGi bundle jars being placed in CRX package.

var installPath: String

installRunMode

Suffix added to install path effectively allowing to install bundles only on specific instances.

var installRunMode: String?

javaConvention

val javaConvention: JavaPluginConvention!

javaPackage

Determines package in which OSGi bundle being built contains its classes. Basing on that value, there will be:

var javaPackage: String?

javaPackageOptions

Determines how conflicts will be resolved when coincidental classes will be detected. Useful to combine Java sources with Kotlin, Scala etc.

var javaPackageOptions: String

license

var license: String?

privatePackages

var privatePackages: List<String>

slingModelPackages

var slingModelPackages: String?

symbolicName

var symbolicName: String?

vaultFilter

Determines if Vault workspace filter entry pointing directly to JAR file should be added automatically for built OSGi bundle.

var vaultFilter: Boolean

vendor

var vendor: String?

Functions

attribute

fun attribute(name: String, value: String?): Manifest!
fun attribute(name: String): String?

bndTool

Allows to configure BND tool specific options.

fun bndTool(options: BundleTaskConvention.() -> Unit): Unit

copy

open fun copy(): Unit

excludePackage

fun excludePackage(pkgs: Iterable<String>): Unit
fun excludePackage(vararg pkgs: String): Unit

exportPackage

fun exportPackage(pkgs: Iterable<String>): Unit
fun exportPackage(vararg pkgs: String): Unit

hasAttribute

fun hasAttribute(name: String): Boolean

importPackage

fun importPackage(pkgs: Iterable<String>): Unit
fun importPackage(vararg pkgs: String): Unit

privatePackage

fun privatePackage(pkgs: Iterable<String>): Unit
fun privatePackage(vararg pkgs: String): Unit

projectEvaluated

open fun projectEvaluated(): Unit

wildcardPackage

fun wildcardPackage(pkgs: Iterable<String>): List<String>
fun wildcardPackage(vararg pkgs: String): List<String>

Companion Object Properties

ACTIVATOR_CLASSES

val ACTIVATOR_CLASSES: List<String>

NAME

const val NAME: String

SOURCE_SETS

val SOURCE_SETS: Map<String, String>