1
1
diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml
2
- index ce356a24ebc..ab1cfeb53d2 100644
2
+ index fff08f9d91e..4b869becf2c 100644
3
3
--- a/.github/workflows/autofix.yml
4
4
+++ b/.github/workflows/autofix.yml
5
- @@ -8 ,7 +8 ,6 @@ jobs:
6
- - uses: actions/checkout@v4
7
-
5
+ @@ -10 ,7 +10 ,6 @@ jobs:
6
+ - uses: sbt/setup-sbt@v1
7
+
8
8
- run: |
9
9
- ./mill __.fix + mill.javalib.palantirformat.PalantirFormatModule/ + mill.scalalib.scalafmt.ScalafmtModule/ + mill.kotlinlib.ktlint.KtlintModule/
10
10
- ./mill --meta-level 1 mill.scalalib.scalafmt.ScalafmtModule/
11
11
+ ./mill __.fix + mill.javalib.palantirformat.PalantirFormatModule/ + mill.scalalib.scalafmt.ScalafmtModule/scalafmt + mill.kotlinlib.ktlint.KtlintModule/
12
-
12
+
13
13
- uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
14
14
\ No newline at end of file
15
15
diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
16
- index 117431e4498..2c34746853a 100644
16
+ index a09996c74d3..a04788e4f40 100644
17
17
--- a/.github/workflows/run-tests.yml
18
18
+++ b/.github/workflows/run-tests.yml
19
- @@ -261 ,5 +261 ,4 @@ jobs:
19
+ @@ -301 ,5 +301 ,4 @@ jobs:
20
20
java-version: '17'
21
21
buildcmd: |
22
22
set -eux
23
23
- ./mill -i mill.scalalib.scalafmt.ScalafmtModule/checkFormatAll + __.mimaReportBinaryIssues + __.fix --check + mill.javalib.palantirformat.PalantirFormatModule/ --check + mill.kotlinlib.ktlint.KtlintModule/checkFormatAll
24
24
- ./mill -i --meta-level 1 mill.scalalib.scalafmt.ScalafmtModule/checkFormatAll
25
25
+ ./mill -i mill.scalalib.scalafmt.ScalafmtModule/scalafmt --check + __.mimaReportBinaryIssues + __.fix --check + mill.javalib.palantirformat.PalantirFormatModule/ --check + mill.kotlinlib.ktlint.KtlintModule/checkFormatAll
26
26
diff --git a/build.mill b/build.mill
27
- index 92bfb2c2f8f..9854c30dac1 100644
27
+ index 64b8f5e0ce9..1b7cb02d029 100644
28
28
--- a/build.mill
29
29
+++ b/build.mill
30
30
@@ -1,16 +1,16 @@
@@ -48,7 +48,7 @@ index 92bfb2c2f8f..9854c30dac1 100644
48
48
import mill.T
49
49
import mill.define.Cross
50
50
51
- @@ -290 ,19 +290 ,19 @@ object Deps {
51
+ @@ -292 ,19 +292 ,19 @@ object Deps {
52
52
}
53
53
54
54
def millVersion: T[String] = Task.Input {
@@ -72,7 +72,7 @@ index 92bfb2c2f8f..9854c30dac1 100644
72
72
}
73
73
74
74
def millDownloadPrefix = Task {
75
- @@ -321 ,7 +321 ,7 @@ def millBinPlatform: T[String] = Task {
75
+ @@ -323 ,7 +323 ,7 @@ def millBinPlatform: T[String] = Task {
76
76
}
77
77
}
78
78
@@ -81,7 +81,7 @@ index 92bfb2c2f8f..9854c30dac1 100644
81
81
82
82
def millJvmVersion = Task.Source(Task.workspace / ".mill-jvm-version")
83
83
84
- @@ -471 ,7 +471 ,7 @@ trait MillPublishJavaModule extends MillJavaModule with PublishModule {
84
+ @@ -473 ,7 +473 ,7 @@ trait MillPublishJavaModule extends MillJavaModule with PublishModule {
85
85
/**
86
86
* Some custom scala settings and test convenience
87
87
*/
@@ -90,7 +90,7 @@ index 92bfb2c2f8f..9854c30dac1 100644
90
90
def scalaVersion = Deps.scalaVersion
91
91
def scalapVersion: T[String] = Deps.scala2Version
92
92
def scalafixScalaBinaryVersion = T {
93
- @@ -528 ,8 +528 ,8 @@ trait MillScalaModule extends ScalaModule with MillJavaModule with ScalafixModul
93
+ @@ -530 ,8 +530 ,8 @@ trait MillScalaModule extends ScalaModule with MillJavaModule with ScalafixModul
94
94
val binaryVersion = ZincWorkerUtil.scalaBinaryVersion(sv)
95
95
val hasModuleDefs = binaryVersion == "2.13" || binaryVersion == "3"
96
96
super.scalacPluginIvyDeps() ++
@@ -101,7 +101,7 @@ index 92bfb2c2f8f..9854c30dac1 100644
101
101
}
102
102
103
103
def mandatoryIvyDeps = T {
104
- @@ -537 ,13 +537 ,13 @@ trait MillScalaModule extends ScalaModule with MillJavaModule with ScalafixModul
104
+ @@ -539 ,13 +539 ,13 @@ trait MillScalaModule extends ScalaModule with MillJavaModule with ScalafixModul
105
105
val binaryVersion = ZincWorkerUtil.scalaBinaryVersion(sv)
106
106
val hasModuleDefs = binaryVersion == "2.13" || binaryVersion == "3"
107
107
super.mandatoryIvyDeps() ++
@@ -117,7 +117,7 @@ index 92bfb2c2f8f..9854c30dac1 100644
117
117
def scalafixConfig = T { Some(T.workspace / ".scalafix.conf") }
118
118
def forkArgs = super.forkArgs() ++ outer.testArgs()
119
119
def moduleDeps = outer.testModuleDeps
120
- @@ -583 ,7 +583 ,8 @@ trait MillBaseTestsModule extends TestModule {
120
+ @@ -586 ,7 +586 ,8 @@ trait MillBaseTestsModule extends TestModule {
121
121
trait MillPublishScalaModule extends MillScalaModule with MillPublishJavaModule
122
122
123
123
/** Publishable module which contains strictly handled API. */
@@ -127,7 +127,7 @@ index 92bfb2c2f8f..9854c30dac1 100644
127
127
import com.github.lolgab.mill.mima._
128
128
override def mimaBinaryIssueFilters: T[Seq[ProblemFilter]] = Seq(
129
129
// (5x) MIMA doesn't properly ignore things which are nested inside other private things
130
- @@ -713 ,7 +714 ,7 @@ trait MillStableScalaModule extends MillPublishScalaModule with Mima {
130
+ @@ -716 ,7 +717 ,7 @@ trait MillStableScalaModule extends MillPublishScalaModule with Mima {
131
131
def skipPreviousVersions: T[Seq[String]] = T {
132
132
T.log.info("Skipping mima for previous versions (!!1000s of errors due to Scala 3)")
133
133
mimaPreviousVersions() // T(Seq.empty[String])
@@ -136,9 +136,9 @@ index 92bfb2c2f8f..9854c30dac1 100644
136
136
}
137
137
138
138
trait MillPublishCrossScalaModule extends MillPublishJavaModule with CrossScalaModule
139
- @@ -746 ,10 +747 ,10 @@ trait BridgeModule extends MillPublishCrossScalaModule {
139
+ @@ -749 ,10 +750 ,10 @@ trait BridgeModule extends MillPublishCrossScalaModule {
140
140
)
141
-
141
+
142
142
def compilerBridgeSourceJars: T[Agg[PathRef]] = Task {
143
143
- resolveDeps(
144
144
- Task.Anon { compilerBridgeIvyDeps().map(bindDependency()) },
@@ -148,10 +148,10 @@ index 92bfb2c2f8f..9854c30dac1 100644
148
148
- )()
149
149
+ )
150
150
}
151
-
151
+
152
152
def generatedSources = Task {
153
153
diff --git a/contrib/package.mill b/contrib/package.mill
154
- index b68c27a1ef8..01a3e9da2c0 100644
154
+ index cc7f38c2ec7..97356a39a96 100644
155
155
--- a/contrib/package.mill
156
156
+++ b/contrib/package.mill
157
157
@@ -3,13 +3,12 @@ package build.contrib
@@ -228,7 +228,7 @@ index e49f218f4be..9d03aa073f3 100644
228
228
def ivyDeps = Task {
229
229
if (!caseName.contains("realistic") && !caseName.contains("sourcecode")) super.ivyDeps()
230
230
diff --git a/dist/package.mill b/dist/package.mill
231
- index 515ed31025a..821d8fcc540 100644
231
+ index fe1677bee26..5d50853b10b 100644
232
232
--- a/dist/package.mill
233
233
+++ b/dist/package.mill
234
234
@@ -2,15 +2,14 @@ package build.dist
@@ -249,16 +249,16 @@ index 515ed31025a..821d8fcc540 100644
249
249
case m: PublishModule if (m ne build.dist) && (m ne build.dist.native) => m
250
250
}
251
251
def moduleDeps = Seq(build.runner, build.idea, build.main.init)
252
- @@ -44 ,7 +43 ,7 @@ trait InstallModule extends build.MillPublishJavaModule {
253
- (os.home / ".cache/mill/download" / (build.millVersion() + batExt)).toString()
252
+ @@ -46 ,7 +45 ,7 @@ trait InstallModule extends build.MillPublishJavaModule {
253
+ (os.home / ".cache/mill/download" / (build.millVersion() + cacheBinarySuffix + batExt)).toString()
254
254
)
255
255
)()
256
256
- Task.log.outputStream.println(path.toString())
257
257
+ Task.log.streams.out.println(path.toString())
258
258
PathRef(path)
259
259
}
260
260
261
- @@ -186 ,10 +185 ,10 @@ object `package` extends RootModule with InstallModule {
261
+ @@ -188 ,10 +187 ,10 @@ object `package` extends RootModule with InstallModule {
262
262
val wd = os.Path(wd0, Task.workspace)
263
263
os.makeDir.all(wd)
264
264
try {
@@ -272,7 +272,7 @@ index 515ed31025a..821d8fcc540 100644
272
272
)
273
273
mill.api.Result.Success(())
274
274
} catch {
275
- @@ -234 ,7 +233 ,7 @@ object `package` extends RootModule with InstallModule {
275
+ @@ -236 ,7 +235 ,7 @@ object `package` extends RootModule with InstallModule {
276
276
def examplePathsWithArtifactName: Task[Seq[(os.Path, String)]] = Task.Anon {
277
277
for {
278
278
exampleMod <- build.example.exampleModules
@@ -281,15 +281,15 @@ index 515ed31025a..821d8fcc540 100644
281
281
} yield {
282
282
val example = path.subRelativeTo(Task.workspace)
283
283
val artifactName = example.segments.mkString("-")
284
- @@ -264 ,6 +263 ,7 @@ object `package` extends RootModule with InstallModule {
284
+ @@ -268 ,6 +267 ,7 @@ object `package` extends RootModule with InstallModule {
285
285
}
286
286
287
287
def uploadToGithub(authKey: String) = Task.Command {
288
288
+ /*
289
289
val vcsState = VcsVersion.vcsState()
290
290
val label = vcsState.copy(dirtyHash = None).format()
291
291
if (label != build.millVersion()) sys.error("Modified mill version detected, aborting upload")
292
- @@ -280 ,7 +280 ,7 @@ object `package` extends RootModule with InstallModule {
292
+ @@ -284 ,7 +284 ,7 @@ object `package` extends RootModule with InstallModule {
293
293
headers = Seq("Authorization" -> ("token " + authKey))
294
294
)
295
295
}
@@ -298,7 +298,7 @@ index 515ed31025a..821d8fcc540 100644
298
298
()
299
299
}
300
300
301
- @@ -317 ,7 +317 ,7 @@ object `package` extends RootModule with InstallModule {
301
+ @@ -323 ,7 +323 ,7 @@ object `package` extends RootModule with InstallModule {
302
302
out.write(os.read.bytes(assembly().path))
303
303
}
304
304
@@ -308,7 +308,7 @@ index 515ed31025a..821d8fcc540 100644
308
308
PathRef(executable)
309
309
}
310
310
diff --git a/example/package.mill b/example/package.mill
311
- index a1e60b992d2..b5ae133427a 100644
311
+ index 12ec7e60fdf..91ec73d01c3 100644
312
312
--- a/example/package.mill
313
313
+++ b/example/package.mill
314
314
@@ -3,13 +3,12 @@ package build.example
@@ -326,7 +326,7 @@ index a1e60b992d2..b5ae133427a 100644
326
326
import mill.contrib.buildinfo.BuildInfo
327
327
import mill.T
328
328
import mill.define.Cross
329
- @@ -18,116 +17,116 @@ import mill.define.Cross
329
+ @@ -18,117 +17,117 @@ import mill.define.Cross
330
330
import $meta._
331
331
332
332
object `package` extends RootModule with Module {
@@ -475,9 +475,11 @@ index a1e60b992d2..b5ae133427a 100644
475
475
object large extends Module {
476
476
477
477
- object selective extends Cross[ExampleCrossModule](build.listIn(millSourcePath / "selective"))
478
- - object multi extends Cross[ExampleCrossModule](build.listIn(millSourcePath / "multi"))
478
+ - object multifile extends Cross[ExampleCrossModule](build.listIn(millSourcePath / "multifile"))
479
+ - object multilang extends Cross[ExampleCrossModule](build.listIn(millSourcePath / "multilang"))
479
480
+ object selective extends Cross[ExampleCrossModule](build.listIn(moduleDir / "selective"))
480
- + object multi extends Cross[ExampleCrossModule](build.listIn(moduleDir / "multi"))
481
+ + object multifile extends Cross[ExampleCrossModule](build.listIn(moduleDir / "multifile"))
482
+ + object multilang extends Cross[ExampleCrossModule](build.listIn(moduleDir / "multilang"))
481
483
}
482
484
483
485
object extending extends Module {
@@ -502,7 +504,7 @@ index a1e60b992d2..b5ae133427a 100644
502
504
case "1-test-suite" => line
503
505
.replace(
504
506
"mill bar.test bar.BarTests.hello",
505
- @@ -152 ,7 +151 ,7 @@ object `package` extends RootModule with Module {
507
+ @@ -153 ,7 +152 ,7 @@ object `package` extends RootModule with Module {
506
508
case "publishing" => Some(scalalib.publishing)
507
509
case _ => None
508
510
}
@@ -511,7 +513,7 @@ index a1e60b992d2..b5ae133427a 100644
511
513
.flatMap(_.valuesToModules.get(List(crossValue)))
512
514
513
515
def testRepoRoot = Task {
514
- @@ -218 ,10 +217 ,10 @@ object `package` extends RootModule with Module {
516
+ @@ -219 ,10 +218 ,10 @@ object `package` extends RootModule with Module {
515
517
516
518
trait ExampleCrossModule extends build.integration.IntegrationTestModule {
517
519
// disable scalafix because these example modules don't have sources causing it to misbehave
@@ -524,7 +526,7 @@ index a1e60b992d2..b5ae133427a 100644
524
526
def sources = Task {
525
527
sources0()
526
528
.flatMap(pathRef => os.walk(pathRef.path))
527
- @@ -250 ,7 +249 ,7 @@ object `package` extends RootModule with Module {
529
+ @@ -251 ,7 +250 ,7 @@ object `package` extends RootModule with Module {
528
530
529
531
def rendered = Task {
530
532
var seenCode = false
@@ -533,17 +535,17 @@ index a1e60b992d2..b5ae133427a 100644
533
535
os.write(
534
536
Task.dest / "example.adoc",
535
537
parsed()
536
- @@ -308 ,7 +307 ,7 @@ $txt
537
- "gatling " -> ("gatling/gatling ", "3870fda86e6bca005fbd53108c60a65db36279b6 "),
538
- "arrow " -> ("arrow-kt/arrow ", "bc9bf92cc98e01c21bdd2bf8640cf7db0f97204a ")
538
+ @@ -310 ,7 +309 ,7 @@ $txt
539
+ "arrow " -> ("arrow-kt/arrow ", "bc9bf92cc98e01c21bdd2bf8640cf7db0f97204a "),
540
+ "ollama-js " -> ("ollama/ollama-js ", "99293abe2c7c27ce7e76e8b4a98cae948f00058d ")
539
541
)
540
542
- object thirdparty extends Cross[ThirdPartyModule](build.listIn(millSourcePath / "thirdparty"))
541
543
+ object thirdparty extends Cross[ThirdPartyModule](build.listIn(moduleDir / "thirdparty"))
542
544
trait ThirdPartyModule extends ExampleCrossModule {
543
545
val (repoPath, repoHash) = repoInfo(crossValue)
544
546
def repoSlug = repoPath.split("/").last
545
547
diff --git a/integration/package.mill b/integration/package.mill
546
- index d57b7936add..ae4985f9102 100644
548
+ index 7a8dcbbc774..db60a89a102 100644
547
549
--- a/integration/package.mill
548
550
+++ b/integration/package.mill
549
551
@@ -3,13 +3,12 @@ package build.integration
@@ -584,7 +586,7 @@ index d57b7936add..ae4985f9102 100644
584
586
def scalaVersion = build.Deps.scalaVersion
585
587
586
588
def forkEnv =
587
- @@ -86 ,15 +85 ,15 @@ object `package` extends RootModule {
589
+ @@ -98 ,15 +97 ,15 @@ object `package` extends RootModule {
588
590
}
589
591
}
590
592
@@ -607,7 +609,7 @@ index d57b7936add..ae4985f9102 100644
607
609
override def moduleDeps = super[IntegrationTestModule].moduleDeps
608
610
def forkEnv = super.forkEnv() ++ Seq(
609
611
diff --git a/main/package.mill b/main/package.mill
610
- index 73c8cd24f9c..362eac814cd 100644
612
+ index cb221c121e2..9b992abac9d 100644
611
613
--- a/main/package.mill
612
614
+++ b/main/package.mill
613
615
@@ -75,15 +75,10 @@ object `package` extends RootModule with build.MillStableScalaModule with BuildI
@@ -663,10 +665,10 @@ index ee6663745f9..09b545ca7a5 100644
663
665
def mandatoryIvyDeps = Agg.empty[Dep]
664
666
def compileIvyDeps = super.mandatoryIvyDeps() ++ Agg(
665
667
diff --git a/scalalib/package.mill b/scalalib/package.mill
666
- index df9a8c206ba..aa7da099928 100644
668
+ index 7d04d040329..048fe96452e 100644
667
669
--- a/scalalib/package.mill
668
670
+++ b/scalalib/package.mill
669
- @@ -2 ,14 +2 ,13 @@ package build.scalalib
671
+ @@ -3 ,14 +3 ,13 @@ import scala.util.Properties
670
672
import scala.util.chaining._
671
673
import coursier.maven.MavenRepository
672
674
import mill._
0 commit comments