summaryrefslogtreecommitdiff
path: root/docs/pages/9 - Contrib Modules.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/pages/9 - Contrib Modules.md')
-rw-r--r--docs/pages/9 - Contrib Modules.md36
1 files changed, 19 insertions, 17 deletions
diff --git a/docs/pages/9 - Contrib Modules.md b/docs/pages/9 - Contrib Modules.md
index 19817a4b..f9270e38 100644
--- a/docs/pages/9 - Contrib Modules.md
+++ b/docs/pages/9 - Contrib Modules.md
@@ -109,58 +109,60 @@ Quickstart:
```
- [publishM2](https://github.com/lefou/mill-publishM2 "mill-publishM2")
-
+
Mill plugin to publish artifacts into a local Maven repository.
-
+
Quickstart:
-
+
Just mix-in the `PublishM2Module` into your project.
`PublishM2Module` already extends mill's built-in `PublishModule`.
-
+
File: `build.sc`
```scala
import mill._, scalalib._, publish._
-
+
import $ivy.`de.tototec::de.tobiasroeser.mill.publishM2:0.0.1`
import de.tobiasroeser.mill.publishM2._
-
+
object project extends PublishModule with PublishM2Module {
// ...
}
```
-
+
Publishing to default local Maven repository
-
- ```
+
+ ```bash
> mill project.publishM2Local
[40/40] project.publishM2Local
Publishing to /home/user/.m2/repository
```
-
+
Publishing to custom local Maven repository
- ```
+
+ ```bash
> mill project.publishM2Local /tmp/m2repo
[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")
)}
-
+
}
```
+