# Overview

## Build

To build the plugin, just go to the plugin root directory and enter the command :

This should place the gradle-bnd-plugin-<version>.jar under build/libs.

## Use

### a. Import

Add the following buildscript section and import statement

### b. Use

Apply the plugin

apply plugin: GradleBndPlugin


### c. Configure

You will need to configure the behaviour of the plugin as follows

bnd {
condense = true // omit this or set to false if no uber jar is required to be built
exclusions = ['groovy-all'] as Set // list of jar files (without version number or
// extensions to not be included in the uberjar
// in case the above condense parameter is set
// to true (note: groovy-all is just a sample data)
// note : the following are just sample data - customise as needed
instructions = [
'Import-Package': 'org.osgi.framework;version="[1.4,2)",*',
'Export-Package': 'my.package.export,*',
'Bundle-Activator':'my.package.BundleActivator',
'Bundle-Description':'My Bundle Description',
'Bundle-Vendor':'Vendor Name',
'Bundle-Version':'1.0.0'
]
}


### Profit

Have fun. Raise requests in the project issues or send me pull requests if you have some cool functionality to add.