Mill plugin to publish artifacts into a local Maven repository.
Note
|
This mill plugin is now obsolete since Mill 0.6.2. I migrated all of it’s functionality into mill core. |
Just mix-in the PublishM2Module
into your project. PublishM2Module
already extends mill’s built-in PublishModule
.
build.sc
import mill._
import mill.scalalib._
import $ivy.`de.tototec::de.tobiasroeser.mill.publishM2:0.1.3`
import de.tobiasroeser.mill.publishM2._
object project extends PublishM2Module {
// ...
}
> mill project.publishM2Local [40/40] project.publishM2Local Publishing to /home/user/.m2/repository
> mill project.publishM2Local /tmp/m2repo [40/40] project.publishM2Local Publishing to /tmp/m2repo
Mill is still in active development, and has no stable API yet. Hence, not all mill-publishM2 versions work with every mill version.
The following table shows a matrix of compatible mill and mill-publishM2 versions.
mill-publishM2 | mill |
---|---|
0.1.3 |
0.6.0 - 0.6.2 |
0.1.2 |
0.5.7 |
0.1.0 |
0.3.6 - 0.5.3 |
0.0.2 |
0.3.2 |
0.0.1 |
0.2.8 |
-
Version bump to mill 0.3.6
-
publishM2Local
now return `PathRef`s to published files -
Added test cases
-
Changed packaging and loading into mill by excluding mill dependencies