Just add the following lines to your plugin definition (plugins.sbt file in the project/ folder of your project or plugins.sbt file in the ~/.sbt/plugins/ directory, for details about plugins see the sbt documentation), paying attention to the blank line between settings:
resolvers += Classpaths.typesafeResolver addSbtPlugin("com.typesafe.sbtosgi" % "sbtosgi" % "0.1.0")
Adding sbcosgi settings
- Add the below line to your build definition, which will add the task osgi-bundle, paying attention to the blank line between settings:
This plugin comes with the following configuration options, available as sbt settings:
- OsgiKeys.bundleActivator: Optional value for Bundle-Activator header, default is None
- OsgiKeys.bundleSymbolicName: Value for Bundle-SymbolicName header, default is organization plus name
- OsgiKeys.bundleVersion: Value for Bundle-Version header, default is version
- OsgiKeys.dynamicImportPackage: Values for Dynamic-ImportPackage header, default is the empty sequence
- OsgiKeys.export-package: Values for Export-Package header, c
- OsgiKeys.importPackage: Values for Import-Package header, default is "*"
- OsgiKeys.fragmentHost: Optional value for Fragment-Host header, default is None
- OsgiKeys.privatePackage: Values for Private-Package header, default is OsgiKeys.bundleSymbolicName plus ".*"
- OsgiKeys.*requireBundle: Values for *Require-Bundle header, default is the empty sequence
Please use the sbt mailing list and prefix the subject with "[sbtosgi]".
Contributions via GitHub pull requests are gladly accepted from their original author. Along with any pull requests, please state that the contribution is your original work and that you license the work to the groll project under the project's open source license.
This code is open source software licensed under the Apache 2.0 License. Feel free to use it accordingly.