Skip to content

Commit

Permalink
Prepared release 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lefou committed Oct 16, 2020
1 parent 86520ce commit 11fb7cb
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .mill-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.2
0.8.0
41 changes: 40 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
= mill-osgi - Build OSGi Bundles with mill
:mill-min-version: 0.6.0
:mill-osgi-version: 0.3.0
:mill-osgi-version: 0.3.1
:projectHome: https://github.com/lefou/mill-osgi
:toc:
:toc-placement: preamble
Expand Down Expand Up @@ -56,6 +56,35 @@ $ mill show project.jar
"ref:14551bd1:/tmp/project/out/project/osgiBundle/dest/out.jar"
----

== Example using the `BuildMode.CalculateManifest`

.File: `build.sc`
[source,scala,subs="verbatim,attributes"]
----
// build.sc default imports
import mill._, mill.scalalib._
// This import the mill-osgi plugin
import $ivy.`de.tototec::de.tobiasroeser.mill.osgi:{mill-osgi-version}`
import de.tobiasroeser.mill.osgi._
object project extends ScalaModule with OsgiBundleModule {
override def osgiBuildMode = OsgiBundleModule.BuildMode.CalculateManifest
override def scalaVersion = "2.13.3"
def bundleSymbolicName = "com.example.project"
def osgiHeaders = T{ super.osgiHeaders().copy(
`Export-Package` = Seq("com.example.api"),
`Bundle-Activator` = Some("com.example.internal.Activator")
)}
// other settings ...
}
----

== Configuration

To produce OSGi bundles, your module has to implement link:core/src/de/tobiasroeser/mill/osgi/OsgiBundleModule.scala[`de.tobiasroeser.mill.osgi.OsgiBundleModule`].
Expand Down Expand Up @@ -160,6 +189,7 @@ The following table shows a matrix of compatible mill and mill-osgi versions.
[options="header"]
|===
| mill-osgi | mill
| 0.3.1 | 0.6.0 - 0.8.0
| 0.3.0 | 0.6.0 - 0.8.0
| 0.2.0 | 0.6.0 - 0.6.3
| 0.1.2 | 0.5.7 - 0.5.9
Expand Down Expand Up @@ -206,6 +236,15 @@ I also accept {projectHome}/pulls[pull requests].

=== {main}

=== mill-osgi 0.3.1 - 2020-11-16

* Version bump bndlib t0 5.2.0
* Version bump scalatest to 3.2.2
* Various build related improvements
** Github Actions instead of Travis-CI
** Use of mill-vcs-version plugin


=== mill-osgi 0.3.0 - 2020-05-15

* Added new build mode `CalculateManifest`, which only generates the manifest properties but leaves the jar creation to `JavaModule`.
Expand Down

0 comments on commit 11fb7cb

Please sign in to comment.