Skip to content

Commit 53c1da5

Browse files
committed
merge
2 parents 548e951 + 63109ed commit 53c1da5

File tree

979 files changed

+28578
-9736
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

979 files changed

+28578
-9736
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ ktlint_standard_no-wildcard-imports = disabled
2121
[example/kotlinlib/linting/**/*]
2222
ktlint = disabled
2323

24+
[example/kotlinlib/config/3-linting/**/*]
25+
ktlint = disabled
26+
2427
[kotlinlib/test/resources/contrib/ktfmt/**/*]
2528
ktlint = disabled
2629

.github/actions/post-build-selective/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ inputs:
44
default: ''
55
type: string
66

7+
extra:
8+
default: ''
9+
type: string
10+
711
shell:
812
required: true
913
type: string
@@ -43,7 +47,7 @@ runs:
4347
#- run: ./mill -i -k selective.resolveChanged ${{ inputs.millargs }}
4448
# shell: ${{ inputs.shell }}
4549

46-
- run: ./mill -i -k selective.run ${{ inputs.millargs }}
50+
- run: ./mill -i -k ${{ inputs.extra }} selective.run ${{ inputs.millargs }}
4751
shell: ${{ inputs.shell }}
4852

4953
- name: Clean-up Test Reports

.github/workflows/post-build-selective.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
os:
1717
default: 'ubuntu-latest'
1818
type: string
19+
extra:
20+
default: ''
21+
type: string
1922
timeout-minutes:
2023
default: 60
2124
type: number
@@ -63,4 +66,5 @@ jobs:
6366

6467
with:
6568
millargs: ${{ inputs.millargs }}
66-
shell: ${{ inputs.shell }}
69+
shell: ${{ inputs.shell }}
70+
extra: ${{ inputs.extra }}

.github/workflows/run-tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
- java-version: 11
148148
millargs: "example.scalalib.__.local.daemon"
149149

150-
- java-version: 17
150+
- java-version: 21
151151
millargs: "example.javalib.__.local.daemon"
152152

153153
- java-version: 17
@@ -165,10 +165,10 @@ jobs:
165165
- java-version: 24
166166
millargs: "'example.{pythonlib,javascriptlib}.__.local.daemon'"
167167

168-
- java-version: 17
168+
- java-version: 21
169169
millargs: "'example.{cli,fundamentals,depth,extending,large}.__.local.daemon'"
170170

171-
- java-version: 17.0.16
171+
- java-version: 21
172172
millargs: "'integration.{feature,ide}.__.packaged.daemon'"
173173

174174
# run this specifically in `native` mode to make sure our non-JVM native image
@@ -204,8 +204,9 @@ jobs:
204204
millargs: "'integration.invalidation.__.packaged.daemon'"
205205

206206
- java-version: 11
207+
# turn of parallelism since it sometimes causes issues with concurrent migrations
207208
millargs: '"example.migrating.javalib.__.packaged.daemon"'
208-
209+
extra: "--jobs=1"
209210
- java-version: 11
210211
millargs: '"libs.{util,javalib,androidlib,graphviz}.__.test"'
211212

@@ -223,6 +224,7 @@ jobs:
223224
os: windows-latest
224225
java-version: ${{ matrix.java-version }}
225226
millargs: ${{ matrix.millargs }}
227+
extra: ${{ matrix.extra || '' }}
226228
shell: powershell
227229

228230
itest:

.mill-jvm-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
zulu:17.0.16
1+
zulu:21

.scalafmt.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@ project {
2626
"glob:**/mill/out/**",
2727
# don't try to format files that are purposefully malformed / misformatted
2828
"glob:**/example/scalalib/linting/1-scalafmt/src/Foo.scala",
29+
"glob:**/example/scalalib/config/3-linting/src/Foo.scala",
2930
"glob:**/example/**/*-spotless*/**",
3031
"glob:**/javalib/test/resources/checkstyle/**",
3132
"glob:**/init/test/resources/giter8/hello.g8/src/main/g8/build.mill",
33+
"glob:**/init/gradle/test/resources/**",
34+
"glob:**/init/maven/test/resources/**",
35+
"glob:**/init/sbt/test/resources/**",
3236
"glob:**/javalib/test/resources/javalib/palantirformat/**",
3337
"glob:**/integration/failure/parse-error/**",
3438
"glob:**/testkit/test/resources/example-test-example-project/build.mill",

build.mill

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//| mill-version: 1.0.5-15-2cc69d
1+
//| mill-version: 1.0.6-46-c0a7df
22
//| mill-jvm-opts: ["-XX:NonProfiledCodeHeapSize=250m", "-XX:ReservedCodeCacheSize=500m"]
33
//| mill-opts: ["--jobs=0.5C"]
44

@@ -26,7 +26,7 @@ import scala.util.Properties
2626
import mill.api.BuildCtx
2727
import mill.androidlib.AndroidSdkModule
2828

29-
def millVersionIsStable0(implicit ctx: mill.api.TaskCtx) = ctx.env.contains("MILL_STABLE_VERSION")
29+
def millVersionIsStable0(using ctx: mill.api.TaskCtx) = ctx.env.contains("MILL_STABLE_VERSION")
3030
def millVersionIsStable: T[Boolean] = Task.Input { millVersionIsStable0 }
3131

3232
def millVersion: T[String] = Task.Input {
@@ -74,7 +74,10 @@ def millBinPlatform: T[String] = Task {
7474
}
7575
}
7676

77-
def millJvmVersion = Task.Source(BuildCtx.workspaceRoot / "default-mill-jvm-version")
77+
def defaultMillJvmVersion0 = Task.Source(BuildCtx.workspaceRoot / "default-mill-jvm-version")
78+
def defaultMillJvmVersion = Task {
79+
os.read(defaultMillJvmVersion0().path).trim()
80+
}
7881

7982
val essentialBridgeScalaVersions =
8083
Seq(Deps.scalaVersion, Deps.scala2Version, Deps.workerScalaVersion212)
@@ -180,7 +183,7 @@ def formatDep(dep: Dep) = {
180183
s"${d.module.organization.value}:${d.module.name.value}:${d.versionConstraint.asString}"
181184
}
182185

183-
def listCross(implicit ctx: mill.api.ModuleCtx) = BuildCtx.watchValue {
186+
def listCross(using ctx: mill.api.ModuleCtx) = BuildCtx.watchValue {
184187
// millSourcePath is protected, so we need to access it via reflection
185188
import scala.reflect.Selectable.reflectiveSelectable
186189
os.list(ctx.asInstanceOf[{ def millSourcePath: os.Path }].millSourcePath).map(_.last)

changelog.adoc

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,27 @@ _The changelog below is for tagged, stable releases. For unstable releases,
1313
see the list at https://repo1.maven.org/maven2/com/lihaoyi/mill-dist_
1414

1515

16+
[#1-0-6]
17+
=== 1.0.6
18+
:version: 1.0.6
19+
:milestone-name: 1.0.6
20+
:milestone: 131
21+
:prev-version: 1.0.5
22+
_2025-10-01_
23+
24+
* Support Playwright testing for Scala-JS ({link-pr}/5777[#5777])
25+
* Clean Linker caches when ScalaJSWorker is closed ({link-pr}/5933[#5933])
26+
* Fix prompt resizing when connecting to existing daemon ({link-pr}/5924[#5924])
27+
* Bump Scala version to 3.7.3 ({link-pr}/5897[#5897])
28+
* Make `--bsp` Mill process launch from `MillBspMain` class {link-pr}/5896[#5896])
29+
30+
_Changes since {prev-version}:_
31+
1632
[#1-0-5]
1733
=== 1.0.5
1834
:version: 1.0.5
1935
:milestone-name: 1.0.5
20-
:milestone: 125
36+
:milestone: 130
2137
:prev-version: 1.0.4
2238
_2025-09-16_
2339

@@ -52,7 +68,7 @@ _Changes since {prev-version}:_
5268
=== 1.0.4
5369
:version: 1.0.4
5470
:milestone-name: 1.0.4
55-
:milestone: 124
71+
:milestone: 129
5672
:prev-version: 1.0.3
5773
_2025-08-27_
5874

@@ -72,7 +88,7 @@ _Changes since {prev-version}:_
7288
=== 1.0.3
7389
:version: 1.0.3
7490
:milestone-name: 1.0.3
75-
:milestone: 123
91+
:milestone: 127
7692
:prev-version: 1.0.2
7793
_2025-08-05_
7894

@@ -126,7 +142,7 @@ core.resolve This module contains logic around resolving Mill command line
126142
=== 1.0.2
127143
:version: 1.0.2
128144
:milestone-name: 1.0.2
129-
:milestone: 122
145+
:milestone: 126
130146
:prev-version: 1.0.1
131147
_2025-07-29_
132148

@@ -156,7 +172,7 @@ _Changes since {prev-version}:_
156172
=== 1.0.1
157173
:version: 1.0.1
158174
:milestone-name: 1.0.1
159-
:milestone: 121
175+
:milestone: 125
160176
:prev-version: 1.0.0
161177
_2025-07-21_
162178

@@ -177,7 +193,7 @@ _Changes since {prev-version}:_
177193
=== 1.0.0
178194
:version: 1.0.0
179195
:milestone-name: 1.0.0
180-
:milestone: 121
196+
:milestone: 124
181197
:prev-version: 1.0.0-RC3
182198
_2025-07-10_
183199

@@ -595,7 +611,7 @@ _Changes since {prev-version}:_
595611
=== 0.12.15
596612
:version: 0.12.15
597613
:milestone-name: 0.12.15
598-
:milestone: 116
614+
:milestone: 121
599615
:prev-version: 0.12.14
600616
_2025-08-01_
601617

@@ -621,7 +637,7 @@ version contains regex-sensitive characters ({link-pr}/5599[#5599])
621637
=== 0.12.14
622638
:version: 0.12.14
623639
:milestone-name: 0.12.14
624-
:milestone: 116
640+
:milestone: 119
625641
:prev-version: 0.12.13
626642
_2025-05-20_
627643

@@ -639,7 +655,7 @@ _Changes since {prev-version}:_
639655
=== 0.12.13
640656
:version: 0.12.13
641657
:milestone-name: 0.12.13
642-
:milestone: 115
658+
:milestone: 120
643659
:prev-version: 0.12.11
644660
_2025-05-18_
645661

@@ -828,7 +844,7 @@ _2025-01-31_
828844

829845
_Changes since {prev-version}:_
830846

831-
* https://mill-build.org/mill/cli/installation-ide.html#_mill_native_executable[Mill now provides native executables] on windows-amd64, linux-{amd64,aarch64}, and
847+
* https://mill-build.org/mill/cli/installation-ide.html#_mill_native_and_jvm_executables[Mill now provides native executables] on windows-amd64, linux-{amd64,aarch64}, and
832848
macos-{amd64,aarch64}. These can be enabled by adding the `-native` suffix to your `.mill-version`
833849
file (e.g. `0.12.6-native`), and allows you to run Mill on clean machines without needing
834850
a pre-installed JVM (Mill will instead download one as necessary)

ci/test-dist-run.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
set -eux
44

5-
EXAMPLE=example/scalalib/basic/6-realistic
5+
EXAMPLE=example/scalalib/basic/10-realistic
66

77
rm -rf $EXAMPLE/out
88

9-
test ! -d $EXAMPLE/out/foo/3.3.3/compile.dest
9+
test ! -d $EXAMPLE/out/foo/3.3.6/compile.dest
1010
test ! -f $EXAMPLE/out/bar/2.13.16/assembly.dest/out.jar
1111

12-
./mill -i dist.run $EXAMPLE -i "foo[3.3.3].run"
12+
./mill -i dist.run $EXAMPLE -i "foo[3.3.6].run"
1313

14-
test -d $EXAMPLE/out/foo/3.3.3/compile.dest
14+
test -d $EXAMPLE/out/foo/3.3.6/compile.dest
1515

1616
./mill -i dist.run $EXAMPLE show "bar[2.13.16].assembly"
1717

ci/test-mill-bootstrap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ rm -rf out
2323

2424

2525
# Run tests
26-
./mill-assembly.jar -i "example.scalalib.basic[1-simple].packaged.daemon.testForked"
26+
./mill-assembly.jar -i "example.scalalib.basic[3-simple].packaged.daemon.testForked"

0 commit comments

Comments
 (0)