Skip to content

Commit fc30f4b

Browse files
committed
chore: Adjust Mill build file to fix Bloop compilation
Previously, if importing build as Bloop we would not get proper classpath for bridge modules as they would be missing tansitive classes directories. This is probably a bug in mill bloop plugin, but I am not sure we want to dig in there currently. Now, I added explicit depndency on those moduls which seems to have fixed compilation.
1 parent 3dca45b commit fc30f4b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build.sc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,9 @@ object bridges extends Module {
373373
class Scalajs1(val crossScalaVersion: String) extends BloopCrossSbtModule with PublishModule {
374374
def artifactName = "bloop-js-bridge-1"
375375
def compileModuleDeps = super.compileModuleDeps ++ Seq(
376-
frontend()
376+
frontend(),
377+
shared(),
378+
backend()
377379
)
378380
def compileIvyDeps = super.compileIvyDeps() ++ Agg(
379381
Dependencies.scalaJsLinker1,
@@ -417,7 +419,9 @@ object bridges extends Module {
417419
def sources = T.sources(updateSources(super.sources()))
418420

419421
def compileModuleDeps = super.compileModuleDeps ++ Seq(
420-
frontend()
422+
frontend(),
423+
shared(),
424+
backend()
421425
)
422426
def compileIvyDeps = super.compileIvyDeps() ++ Agg(
423427
Dependencies.scalaNativeTools04

0 commit comments

Comments
 (0)