-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Mill API to 0.11 and some tweaks (#118)
This adds support for Mill API 0.11. In Mill 0.11.0-M8, some internals have changed (com-lihaoyi/mill#2425), so the consumption of transitive module dependencies had to be changed to continue to generate proper OSGi Manifests. This feels a bit fragile in the sense, that if the customized targets and their interactions change upstream, we might need to follow these changes in this plugin. Pull request: #118
- Loading branch information
Showing
13 changed files
with
80 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.11.0-27-d74d22 | ||
0.11.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
core/src-0.10-/de/tobiasroeser/mill/osgi/OsgiBundleModulePlatform.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package de.tobiasroeser.mill.osgi | ||
|
||
import mill.{Agg,T} | ||
import mill.api.PathRef | ||
import mill.scalalib.JavaModule | ||
|
||
trait OsgiBundleModulePlatform extends JavaModule { | ||
} |
19 changes: 19 additions & 0 deletions
19
core/src-0.11+/de/tobiasroeser/mill/osgi/OsgiBundleModulePlatform.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package de.tobiasroeser.mill.osgi | ||
|
||
import mill.{Agg,T} | ||
import mill.api.PathRef | ||
import mill.scalalib.JavaModule | ||
|
||
trait OsgiBundleModulePlatform extends JavaModule { | ||
|
||
override def compileClasspath: T[Agg[PathRef]] = T { | ||
// restore pre-Mill-0.11.0-M8 behavior | ||
// Mill 0.11.0-M8 uses transitiveCompileClasspath instead of transitiveLocalClass | ||
// which does not include the resources | ||
transitiveLocalClasspath() ++ | ||
compileResources() ++ | ||
unmanagedClasspath() ++ | ||
resolvedIvyDeps() | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import $exec.plugins | ||
import $exec.shared | ||
import $file.shared | ||
|
||
import mill._ | ||
import mill.scalalib._ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import $exec.plugins | ||
import $exec.shared | ||
import $file.shared | ||
|
||
import mill._ | ||
import mill.scalalib._ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters