Home

Awesome

Gradle OSGiBnd Plugin

Gradle OSGiBnd Plugin uses the BND tool to generate OSGi bundles.

Usage

To use this plugin, add the following to your build script.

buildscript {
	repositories {
		maven {
			url "https://plugins.gradle.org/m2/"
		}
	}
	dependencies {
		classpath "gradle.plugin.org.jruyi.gradle:osgibnd-gradle-plugin:0.5.0"
	}
}

apply plugin: 'org.jruyi.osgibnd'

Or for gradle 2.1+

plugins {
	id "org.jruyi.osgibnd" version "0.5.0"
}

Implicitly Applied Plugins

Applies the Java plugin.

Tasks

This plugin does not add any tasks.

Add bnd instructions to the jar manifest to change the plugin behavior.

Example
jar {
	manifest {
		attributes (
				'Export-Package': 'org.jruyi.example.*',
				'-dsannotations': '*',
		)
	}
}

Please visit [BND website] (http://www.aqute.biz/Bnd/Format) for a complete list of instructions and their format

Default Behavior

License

OSGiBnd Gradle Plugin is licensed under the Apache License, Version 2.0.