File: mill-osgi.md

package info (click to toggle)
bnd 5.0.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 44,128 kB
  • sloc: java: 249,039; xml: 90,728; sh: 655; perl: 153; makefile: 96; python: 47; javascript: 9
file content (37 lines) | stat: -rw-r--r-- 847 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
title: Mill OSGi Plugin
layout: default
summary: A Mill Plugin to create OSGi Bundles.
version: 0.0.2
---

Plugin to build OSGi bundles with the [mill build tool][1].

## Quickstart

```scala
// mill default imports
import mill._, scalalib._
// Load mill-osgi in version 0.0.3
import $ivy.`de.tototec::de.tobiasroeser.mill.osgi:0.0.3`
// and import its main package
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")
  )}

}
```

## Download and Documentation

Please refer the [plugin project page][2] for details.

[1] https://github.com/lihaoyi/mill
[2] https://github.com/lefou/mill-osgi