Skip to content


Subversion checkout URL

You can clone with
Download ZIP
sbt plugin for creating OSGi bundles
Fetching latest commit...
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



Plugin for sbt to create OSGi bundles. More details to come ...

Installing sbtosgi

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:
seq(scalariformSettings: _*)

Configuring sbtosgi

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

Mailing list

Please use the sbt mailing list and prefix the subject with "[sbtosgi]".

Contribution policy

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.

Something went wrong with that request. Please try again.