Skip to content

Commit

Permalink
Make contrib.buildinfo use compileModuleDeps rather than `moduleD…
Browse files Browse the repository at this point in the history
…eps` (#2568)

Follow up from #2562, to avoid
potentially having duplicate Mill classfiles on the classpath
  • Loading branch information
lihaoyi authored Jun 5, 2023
1 parent f944ceb commit 1535a7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ object contrib extends Module {
// So we can test with buildinfo in the classpath
def testModuleDeps =
super.testModuleDeps ++
Seq(scalalib, contrib.buildinfo)
Seq(scalalib, scalajslib, scalanativelib, contrib.buildinfo)

// Worker for Scoverage 1.x
object worker extends MillPublishScalaModule {
Expand Down Expand Up @@ -733,7 +733,8 @@ object contrib extends Module {
}

object buildinfo extends ContribModule {
def moduleDeps = Seq(scalalib, scalajslib, scalanativelib)
def compileModuleDeps = Seq(scalalib, scalajslib, scalanativelib)
def testModuleDeps = super.testModuleDeps ++ Seq(scalalib, scalajslib, scalanativelib)
}

object proguard extends ContribModule {
Expand Down

0 comments on commit 1535a7b

Please sign in to comment.