This SBuild Plugin adds support to create OSGi bundles (JAR archives) based on bndlib.
Table of Contents
SBuild BndJar Plugin can be downloaded from Maven Central.
To include it in you SBuild buildfile use the @classpath
annotation:
@classpath("mvn:org.sbuild:org.sbuild.plugins.jar:0.0.9000")
You need a recent version of SBuild.
git clone https://github.com/SBuild-org/sbuild-bndjar-plugin.git cd sbuild-sbuild-plugin/org.sbuild.plugins.bndjar sbuild all
You will find the built jar in the directory org.sbuild.plugins.bndjar/target
.
All configurable properties are documented via ScalaDoc. See file BndJar.scala
.