|
1 | 1 | diff --git a/build.mill b/build.mill
|
2 |
| -index 7a8ea3a31a5..5b77aa31591 100644 |
| 2 | +index 019adfc8cb9..c9df11158ef 100644 |
3 | 3 | --- a/build.mill
|
4 | 4 | +++ b/build.mill
|
5 | 5 | @@ -1,16 +1,16 @@
|
@@ -65,7 +65,25 @@ index 7a8ea3a31a5..5b77aa31591 100644
|
65 | 65 | def scalaVersion = Deps.scalaVersion
|
66 | 66 | def scalapVersion: T[String] = Deps.scala2Version
|
67 | 67 | def scalafixScalaBinaryVersion = T {
|
68 |
| -@@ -535,7 +535,7 @@ trait MillScalaModule extends ScalaModule with MillJavaModule with ScalafixModul |
| 68 | +@@ -520,8 +520,8 @@ trait MillScalaModule extends ScalaModule with MillJavaModule with ScalafixModul |
| 69 | + val binaryVersion = ZincWorkerUtil.scalaBinaryVersion(sv) |
| 70 | + val hasModuleDefs = binaryVersion == "2.13" || binaryVersion == "3" |
| 71 | + super.scalacPluginIvyDeps() ++ |
| 72 | +- Agg.when(binaryVersion != "3")(Deps.acyclic) ++ |
| 73 | +- Agg.when(hasModuleDefs)(Deps.millModuledefsPlugin) |
| 74 | ++ Option.when(binaryVersion != "3")(Deps.acyclic) ++ |
| 75 | ++ Option.when(hasModuleDefs)(Deps.millModuledefsPlugin) |
| 76 | + } |
| 77 | + |
| 78 | + def mandatoryIvyDeps = T { |
| 79 | +@@ -529,13 +529,13 @@ trait MillScalaModule extends ScalaModule with MillJavaModule with ScalafixModul |
| 80 | + val binaryVersion = ZincWorkerUtil.scalaBinaryVersion(sv) |
| 81 | + val hasModuleDefs = binaryVersion == "2.13" || binaryVersion == "3" |
| 82 | + super.mandatoryIvyDeps() ++ |
| 83 | +- Agg.when(hasModuleDefs)(Deps.millModuledefs) |
| 84 | ++ Option.when(hasModuleDefs)(Deps.millModuledefs) |
| 85 | + } |
| 86 | + |
69 | 87 | /** Default tests module. */
|
70 | 88 | lazy val test: MillScalaTests = new MillScalaTests {}
|
71 | 89 | trait MillScalaTests extends ScalaTests with MillJavaModule with MillBaseTestsModule
|
@@ -94,7 +112,7 @@ index 7a8ea3a31a5..5b77aa31591 100644
|
94 | 112 |
|
95 | 113 | object bridge extends Cross[BridgeModule](compilerBridgeScalaVersions)
|
96 | 114 | diff --git a/contrib/package.mill b/contrib/package.mill
|
97 |
| -index 421b2955955..7277bba90ff 100644 |
| 115 | +index 421b2955955..30c453234b9 100644 |
98 | 116 | --- a/contrib/package.mill
|
99 | 117 | +++ b/contrib/package.mill
|
100 | 118 | @@ -3,13 +3,12 @@ package build.contrib
|
@@ -141,6 +159,15 @@ index 421b2955955..7277bba90ff 100644
|
141 | 159 | }
|
142 | 160 |
|
143 | 161 | def scalaVersion = build.Deps.play(playBinary).scalaVersion
|
| 162 | +@@ -139,7 +138,7 @@ object `package` extends RootModule { |
| 163 | + build.Deps.scalacScoverage2Reporter, |
| 164 | + build.Deps.scalacScoverage2Domain, |
| 165 | + build.Deps.scalacScoverage2Serializer |
| 166 | +- ) ++ Agg.when(!ZincWorkerUtil.isScala3(scalaVersion()))(build.Deps.scalacScoverage2Plugin) |
| 167 | ++ ) ++ Option.when(!ZincWorkerUtil.isScala3(scalaVersion()))(build.Deps.scalacScoverage2Plugin) |
| 168 | + } |
| 169 | + def mandatoryIvyDeps = Agg.empty[Dep] |
| 170 | + } |
144 | 171 | diff --git a/core/codesig/package.mill b/core/codesig/package.mill
|
145 | 172 | index e49f218f4be..9d03aa073f3 100644
|
146 | 173 | --- a/core/codesig/package.mill
|
@@ -518,6 +545,19 @@ index af00b40d3f0..303bb74cbc0 100644
|
518 | 545 | trait IntegrationCrossModule extends build.MillScalaModule with IntegrationTestModule {
|
519 | 546 | override def moduleDeps = super[IntegrationTestModule].moduleDeps
|
520 | 547 | def forkEnv = super.forkEnv() ++ Seq(
|
| 548 | +diff --git a/main/package.mill b/main/package.mill |
| 549 | +index 08980f56dda..fe819532072 100644 |
| 550 | +--- a/main/package.mill |
| 551 | ++++ b/main/package.mill |
| 552 | +@@ -63,7 +63,7 @@ object `package` extends RootModule with build.MillStableScalaModule with BuildI |
| 553 | + build.dist.resolutionCustomizer(), |
| 554 | + Some(Task.ctx()), |
| 555 | + build.dist.coursierCacheCustomizer() |
| 556 | +- ).getOrThrow.minDependencies.toSeq |
| 557 | ++ ).get.minDependencies.toSeq |
| 558 | + // change to this when bumping Mill |
| 559 | + // ).getOrThrow.minDependencies.toSeq |
| 560 | + .map(d => s"${d.module.organization.value}:${d.module.name.value}:${d.version}") |
521 | 561 | diff --git a/mill-build/build.mill b/mill-build/build.mill
|
522 | 562 | index 957d929826d..112f1aaccb8 100644
|
523 | 563 | --- a/mill-build/build.mill
|
|
0 commit comments