-
-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
After Mill `0.11` `mill-contrib-bloop` stopped supporting the build module. Now `BloopImpl` gets a sequence of `Evaluator`s and gets all modules for all the evaluators in `Evaluator.allBootstrapEvaluators`, so it supports the build module again. Pull Request: #3208
- Loading branch information
Showing
6 changed files
with
56 additions
and
15 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// mill plugins | ||
import $ivy.`com.lihaoyi::mill-contrib-bloop:` | ||
|
||
// imports | ||
import mill._ | ||
import mill.scalalib._ | ||
|
||
object root extends RootModule with JavaModule |
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,30 @@ | ||
package mill.integration | ||
|
||
import utest._ | ||
|
||
object BloopTests extends IntegrationTestSuite { | ||
initWorkspace() | ||
|
||
val installResult: Boolean = eval("mill.contrib.bloop.Bloop/install") | ||
|
||
val tests: Tests = Tests { | ||
test("test") - { | ||
assert(installResult) | ||
|
||
"root module bloop config should be created" - { | ||
assert(os.exists(wd / ".bloop" / "root-module.json")) | ||
} | ||
val millBuildJsonFile = wd / ".bloop" / "mill-build-.json" | ||
"mill-build module bloop config should be created" - { | ||
assert(os.exists(millBuildJsonFile)) | ||
} | ||
|
||
val config = ujson.read(os.read.stream(millBuildJsonFile)) | ||
"mill-build config should contain build.sc source" - { | ||
assert(config("project")("sources").arr.exists(path => | ||
os.Path(path.str).last == "build.sc" | ||
)) | ||
} | ||
} | ||
} | ||
} |