Skip to content

Commit 3055286

Browse files
authored
Revert locally breaking changes for now (#5861)
Reverts: - 4d37738 - fc16b4e - c93e196 This will let us release 1.0.5 without any breakage, and we can delay re-merging those PRs until releasing 1.1.0 later
1 parent 7caa361 commit 3055286

File tree

83 files changed

+279
-310
lines changed

Some content is hidden

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

83 files changed

+279
-310
lines changed

.github/workflows/run-tests.yml

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

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

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

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

172-
- java-version: 21
172+
- java-version: 17.0.14
173173
millargs: "'integration.{feature,ide}.__.packaged.daemon'"
174174

175175
# run this specifically in `native` mode to make sure our non-JVM native image

.mill-jvm-version

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

build.mill

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,7 @@ def millBinPlatform: T[String] = Task {
7474
}
7575
}
7676

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

8279
val essentialBridgeScalaVersions =
8380
Seq(Deps.scalaVersion, Deps.scala2Version, Deps.workerScalaVersion212)

ci/test-dist-run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ EXAMPLE=example/scalalib/basic/6-realistic
66

77
rm -rf $EXAMPLE/out
88

9-
test ! -d $EXAMPLE/out/foo/3.3.6/compile.dest
9+
test ! -d $EXAMPLE/out/foo/3.3.3/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.6].run"
12+
./mill -i dist.run $EXAMPLE -i "foo[3.3.3].run"
1313

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

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

core/constants/src/mill/constants/CodeGenConstants.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,19 @@ public class CodeGenConstants {
2222
/**
2323
* The name of the root build file
2424
*/
25-
public static final List<String> rootBuildFileNames = List.of("build.mill");
25+
public static final List<String> rootBuildFileNames =
26+
List.of("build.mill", "build.mill.scala", "build.sc");
2627

2728
/**
2829
* The name of any sub-folder build files
2930
*/
30-
public static final List<String> nestedBuildFileNames = List.of("package.mill");
31+
public static final List<String> nestedBuildFileNames =
32+
List.of("package.mill", "package.mill.scala", "package.sc");
3133

3234
/**
3335
* The extensions used by build files
3436
*/
35-
public static final List<String> buildFileExtensions = List.of("mill");
37+
public static final List<String> buildFileExtensions = List.of("mill", "mill.scala", "sc");
3638

3739
/**
3840
* The user-facing name for the root of the module tree.

default-mill-jvm-version

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

dist/package.mill

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ object `package` extends MillJavaModule with DistModule {
221221
val ignoreErrorsOnCI = Task.dest / exampleStr / "ignoreErrorsOnCI"
222222
if (os.exists(ignoreErrorsOnCI)) os.remove(ignoreErrorsOnCI)
223223
val buildMill = Task.dest / exampleStr / "build.mill"
224+
os.write.over(buildMill, s"//| mill-version: ${build.millVersion()}\n" + os.read(buildMill))
224225
os.copy(bootstrapLauncher().path, Task.dest / exampleStr / "mill")
225226
os.copy(bootstrapLauncherBat().path, Task.dest / exampleStr / "mill.bat")
226227
val zip = Task.dest / s"$exampleStr.zip"

dist/scripts/src/mill.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ MILL_BUILD_SCRIPT=""
5757

5858
if [ -f "build.mill" ] ; then
5959
MILL_BUILD_SCRIPT="build.mill"
60+
elif [ -f "build.mill.scala" ] ; then
61+
MILL_BUILD_SCRIPT="build.mill.scala"
62+
elif [ -f "build.sc" ] ; then
63+
MILL_BUILD_SCRIPT="build.sc"
6064
fi
6165

6266
# Please note, that if a MILL_VERSION is already set in the environment,

example/depth/javahome/1-custom-jvms/build.mill

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Test foo.FooTest.testSimple finished...
5454
import scalalib.*
5555

5656
object bar extends ScalaModule {
57-
def scalaVersion = "2.13.16"
57+
def scalaVersion = "2.13.12"
5858
def jvmId = "temurin:23.0.1"
5959
def jvmIndexVersion = "latest.release"
6060
}

example/extending/imports/3-contrib-dep/build.mill

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import mill.*, scalalib.*
55
import mill.contrib.buildinfo.BuildInfo
66

77
object foo extends ScalaModule, BuildInfo {
8-
def scalaVersion = "2.13.16"
8+
def scalaVersion = "2.13.10"
99
def buildInfoPackageName = "foo"
1010
def buildInfoMembers = Seq(
1111
BuildInfo.Value("scalaVersion", scalaVersion())
@@ -20,7 +20,7 @@ object foo extends ScalaModule, BuildInfo {
2020

2121
> ./mill foo.run
2222
...
23-
foo.BuildInfo.scalaVersion: 2.13.16
23+
foo.BuildInfo.scalaVersion: 2.13.10
2424

2525
*/
2626

0 commit comments

Comments
 (0)