public class BundleJar
@NotNull public aQute.bnd.gradle.BundleTaskConvention getBndConvention()
public void bndTool(@NotNull
kotlin.jvm.functions.Function1<? super aQute.bnd.gradle.BundleTaskConvention,kotlin.Unit> options)
Allows to configure BND tool specific options.
public void bnd(@NotNull
java.lang.CharSequence... lines)
Add instructions to the BND property from a list of multi-line strings.
public org.gradle.api.provider.Property<java.lang.String> getInstallPath()
Content path for OSGi bundle jars being placed in CRX package.
public org.gradle.api.provider.Property<java.lang.String> getInstallRunMode()
Suffix added to install path effectively allowing to install bundles only on specific instances.
public org.gradle.api.provider.Property<java.lang.Boolean> getVaultFilter()
Determines if Vault workspace filter entry pointing directly to JAR file should be added automatically for built OSGi bundle.
public org.gradle.api.provider.Property<java.lang.Boolean> getAttributesConvention()
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.
public org.gradle.api.provider.Property<java.lang.String> getJavaPackage()
Determines package in which OSGi bundle being built contains its classes. Basing on that value, there will be:
generated OSGi specific manifest instructions like 'Bundle-SymbolicName', 'Export-Package'.
generated AEM specific manifest instructions like 'Sling-Model-Packages'.
performed additional component stability checks within 'packageDeploy' or separately using 'instanceAwait'.
Default convention: '${project.group}.${project.name}'.
Use empty string to disable automatic determining of that package and going further OSGi components checks.
public org.gradle.api.provider.Property<java.lang.String> getJavaPackageOptions()
Determines how conflicts will be resolved when coincidental classes will be detected. Useful to combine Java sources with Kotlin, Scala etc.
public org.gradle.api.provider.ListProperty<java.lang.String> getImportPackages()
public org.gradle.api.provider.Property<java.lang.String> getImportPackageSuffix()
public org.gradle.api.provider.ListProperty<java.lang.String> getExportPackages()
public org.gradle.api.provider.ListProperty<java.lang.String> getPrivatePackages()
public void applyDefaults()
public void applyEvaluated()
public void runBndTool()
Customize JAR being built to be valid OSGi bundle.
public org.gradle.api.provider.ListProperty<java.lang.String> getActivatorClasses()
public org.gradle.api.provider.MapProperty<java.lang.String,java.lang.String> getActivatorSourceSets()
@Input @NotNull public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
public void setAttributes(@NotNull
java.util.Map<java.lang.String,java.lang.Object> value)
public org.gradle.api.java.archives.Manifest attribute(@NotNull
java.lang.String name,
@Nullable
java.lang.String value)
@Nullable
public java.lang.String attribute(@NotNull
java.lang.String name)
public boolean hasAttribute(@NotNull
java.lang.String name)
@Internal @Nullable public java.lang.String getDisplayName()
public void setDisplayName(@Nullable
java.lang.String value)
@Internal @Nullable public java.lang.String getSymbolicName()
public void setSymbolicName(@Nullable
java.lang.String value)
@Internal @Nullable public java.lang.String getActivator()
public void setActivator(@Nullable
java.lang.String value)
@Internal @Nullable public java.lang.String getCategory()
public void setCategory(@Nullable
java.lang.String value)
@Internal @Nullable public java.lang.String getVendor()
public void setVendor(@Nullable
java.lang.String value)
@Internal @Nullable public java.lang.String getLicense()
public void setLicense(@Nullable
java.lang.String value)
@Internal @Nullable public java.lang.String getCopyright()
public void setCopyright(@Nullable
java.lang.String value)
@Internal @Nullable public java.lang.String getDocUrl()
public void setDocUrl(@Nullable
java.lang.String value)
@Internal @Nullable public java.lang.String getDevelopers()
public void setDevelopers(@Nullable
java.lang.String value)
@Internal @Nullable public java.lang.String getContributors()
public void setContributors(@Nullable
java.lang.String value)
@Internal @Nullable public java.lang.String getFragmentHost()
public void setFragmentHost(@Nullable
java.lang.String value)
@Internal @Nullable public java.lang.String getSlingModelPackages()
public void setSlingModelPackages(@Nullable
java.lang.String value)
public void exportPackage(@NotNull
java.lang.Iterable<java.lang.String> pkgs)
public void exportPackage(@NotNull
java.lang.String... pkgs)
public void privatePackage(@NotNull
java.lang.Iterable<java.lang.String> pkgs)
public void privatePackage(@NotNull
java.lang.String... pkgs)
public void importPackage(@NotNull
java.lang.Iterable<java.lang.String> pkgs)
public void importPackage(@NotNull
java.lang.String... pkgs)
public void excludePackage(@NotNull
java.lang.Iterable<java.lang.String> pkgs)
public void excludePackage(@NotNull
java.lang.String... pkgs)
public void optionalPackage(@NotNull
java.lang.Iterable<java.lang.String> pkgs)
public void optionalPackage(@NotNull
java.lang.String... pkgs)
public void embedPackage(@NotNull
java.lang.Object dependencyNotation,
@NotNull
java.lang.String[] pkgs,
boolean export)
public void embedPackage(@NotNull
java.lang.Object dependencyNotation,
@NotNull
java.lang.Iterable<java.lang.String> pkgs,
boolean export)
Copy packages from external dependency (JAR) to currently built OSGi bundle.
This utility method does not work when Gradle feature "configuration on demand" is enabled as of dependencies should be configured before task is configured nor executed.
@NotNull
public java.util.List<java.lang.String> wildcardPackage(@NotNull
java.lang.Iterable<java.lang.String> pkgs)
@NotNull
public java.util.List<java.lang.String> wildcardPackage(@NotNull
java.lang.String... pkgs)