summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/pages/9 - Contrib Modules.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/pages/9 - Contrib Modules.md b/docs/pages/9 - Contrib Modules.md
index f6c9cc7b..19817a4b 100644
--- a/docs/pages/9 - Contrib Modules.md
+++ b/docs/pages/9 - Contrib Modules.md
@@ -143,3 +143,24 @@ Quickstart:
[40/40] project.publishM2Local
Publishing to /tmp/m2repo
```
+
+- [osgi](https://github.com/lefou/mill-osgi "GitHub-Project lefou/mill-osgi")
+
+ Produce OSGi Bundles with mill.
+
+ Quickstart:
+ ```scala
+ import $ivy.`de.tototec::de.tobiasroeser.mill.osgi:0.0.2`
+ import de.tobiasroeser.mill.osgi._
+
+ object project extends ScalaModule with OsgiBundleModule {
+
+ def bundleSymbolicName = "com.example.project"
+
+ def osgiHeaders = T{ osgiHeaders().copy(
+ `Export-Package` = Seq("com.example.api"),
+ `Bundle-Activator` = Some("com.example.internal.Activator")
+ )}
+
+ }
+ ```