-
-
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.
Adapt to latest Mill API changes to support Mill 0.11 API
- Loading branch information
Showing
5 changed files
with
58 additions
and
22 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
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