Class BndBuilderPlugin

java.lang.Object
aQute.bnd.gradle.BndBuilderPlugin
All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>

public class BndBuilderPlugin extends Object implements org.gradle.api.Plugin<org.gradle.api.Project>
BndBuilderPlugin for Gradle.

The plugin name is biz.aQute.bnd.builder.

This plugin applies the java plugin to a project and modifies the jar task by adding the bundle extension BundleTaskExtension, setting the bndfile to "bnd.bnd", if the file exists, and building the jar file as a bundle.

This plugin also defines a "baseline" configuration and a baseline task of type Baseline. The baseline task will be set up with the default of baselining the output of the jar task using the baseline configuration. The baseline configuration default dependency will use the prior version of the jar.

  • Field Details

  • Constructor Details

    • BndBuilderPlugin

      public BndBuilderPlugin()
  • Method Details

    • apply

      public void apply(org.gradle.api.Project project)
      Apply the biz.aQute.bnd.builder plugin to the specified project.
      Specified by:
      apply in interface org.gradle.api.Plugin<org.gradle.api.Project>