Skip to content

Commit 7a2eace

Browse files
committed
Merge remote-tracking branch 'upstream/main' into improvement/fs-watching
# Conflicts: # runner/package.mill
2 parents 8ec73a8 + 329658d commit 7a2eace

File tree

194 files changed

+2301
-875
lines changed

Some content is hidden

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

194 files changed

+2301
-875
lines changed

.github/workflows/run-tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ jobs:
181181
install-android-sdk: true
182182
install-sbt: false
183183

184+
- java-version: 17
185+
millargs: "'example.thirdparty[android-endless-tunnel].local.server'"
186+
install-android-sdk: true
187+
install-sbt: false
188+
184189
- java-version: 17
185190
millargs: "'{example,integration}.migrating.__.local.server'"
186191
install-android-sdk: false

build.mill

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//| mill-version: 0.13.0-M2-29-d4e08d
1+
//| mill-version: 0.13.0-M2-51-773072
22

33
package build
44
// imports
@@ -194,6 +194,7 @@ object Deps {
194194
val semanticDBscala = mvn"org.scalameta:::semanticdb-scalac:4.13.4"
195195
val semanticDbJava = mvn"com.sourcegraph:semanticdb-java:0.10.3"
196196
val sourcecode = mvn"com.lihaoyi::sourcecode:0.4.3-M5"
197+
val springBootTools = mvn"org.springframework.boot:spring-boot-loader-tools:3.4.5"
197198
val upickle = mvn"com.lihaoyi::upickle:4.1.0"
198199
// Using "native-terminal-no-ffm" rather than just "native-terminal", as the GraalVM releases currently
199200
// lacks support for FFM on Mac ARM. That should be fixed soon, see oracle/graal#8113.

ci/mill.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ if (-not (Test-Path -Path $MILL -PathType Leaf)) {
122122
Invoke-WebRequest -Uri $DOWNLOAD_URL -OutFile $MILL
123123
}
124124

125-
$MILL_MAIN_CLI = $Env:MILL_MAIN_CLI ?? $PSCommandPath
125+
126126

127127
$MILL_FIRST_ARG = $null
128128
$REMAINING_ARGUMENTS = $remainingArgs
@@ -134,4 +134,4 @@ if ($null -ne $remainingArgs) {
134134
}
135135
}
136136

137-
& $MILL $MILL_FIRST_ARG -D "mill.main.cli=$MILL_MAIN_CLI" $REMAINING_ARGUMENTS
137+
& $MILL $MILL_FIRST_ARG $REMAINING_ARGUMENTS

contrib/jmh/src/mill/contrib/jmh/JmhModule.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ trait JmhModule extends JavaModule {
4242
Jvm.callProcess(
4343
mainClass = "org.openjdk.jmh.Main",
4444
classPath = (runClasspath() ++ generatorDeps()).map(_.path) ++
45-
Seq(compileGeneratedSources().path, resources),
45+
Seq(compileGeneratedSources().path, resources.path),
4646
mainArgs = args,
4747
cwd = Task.ctx().dest,
4848
javaHome = jvmWorker().javaHome().map(_.path),
@@ -58,7 +58,7 @@ trait JmhModule extends JavaModule {
5858
Task {
5959
val dest = Task.ctx().dest
6060
val (sourcesDir, _) = generateBenchmarkSources()
61-
val sources = os.walk(sourcesDir).filter(os.isFile)
61+
val sources = os.walk(sourcesDir.path).filter(os.isFile)
6262

6363
os.proc(
6464
Jvm.jdkTool("javac"),
@@ -101,7 +101,7 @@ trait JmhModule extends JavaModule {
101101
stdout = os.Inherit
102102
)
103103

104-
(sourcesDir, resourcesDir)
104+
(PathRef(sourcesDir), PathRef(resourcesDir))
105105
}
106106

107107
def generatorDeps = Task {

contrib/package.mill

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import build.Deps
2323
* to collaborate on Mill plugins that is more discoverable than individuals
2424
* hosting their own Github repositories
2525
*/
26-
object `package` extends RootModule {
26+
object `package` extends mill.Module {
2727
def contribModules: Seq[ContribModule] =
2828
moduleInternal.modules.collect { case m: ContribModule => m }
2929

@@ -206,12 +206,11 @@ object `package` extends RootModule {
206206
def mvnDeps = Agg(build.Deps.requests)
207207
}
208208

209-
object sonatypecentral extends ContribModule {
209+
object versionfile extends ContribModule {
210210
def compileModuleDeps = Seq(build.libs.scalalib)
211-
def mvnDeps = Agg(build.Deps.sonatypeCentralClient)
212211
}
213212

214-
object versionfile extends ContribModule {
213+
object sonatypecentral extends ContribModule {
215214
def compileModuleDeps = Seq(build.libs.scalalib)
216215
}
217216

contrib/sonatypecentral/readme.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
= Sonatype Central
1+
= Sonatype Central (Plugin Moved to Scalalib)
22
:page-aliases: Plugin_Sonatype_Central.adoc
33

44
This plugin allows users to publish open-source packages to Maven Central via the Sonatype Central portal.

contrib/sonatypecentral/src/mill/contrib/sonatypecentral/package.scala

Lines changed: 0 additions & 5 deletions
This file was deleted.

core/constants/src/mill/constants/EnvVars.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,9 @@ public class EnvVars {
4242
* e.g. to turn on additional testing/debug/log-related code
4343
*/
4444
public static final String MILL_TEST_SUITE = "MILL_TEST_SUITE";
45+
46+
/**
47+
* The path to the currently executing Mill launcher executable
48+
*/
49+
public static final String MILL_EXECUTABLE_PATH = "MILL_EXECUTABLE_PATH";
4550
}

core/constants/src/mill/constants/Util.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ public static String interpolateEnvVars(
124124
matcher.appendReplacement(result, "\\$");
125125
} else {
126126
String envVarValue;
127-
mill.constants.DebugLog.println("MATCH " + match);
128127
envVarValue = env.containsKey(match) ? env.get(match) : onMissing.apply(match);
129128
matcher.appendReplacement(result, envVarValue);
130129
}

core/define/package.mill

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@ object `package` extends build.MillStableScalaModule {
2525
build.Deps.upickle,
2626
build.Deps.pprint,
2727
build.Deps.fansi,
28-
// Necessary so we can share the JNA classes throughout the build process
29-
build.Deps.jna,
30-
build.Deps.jnaPlatform,
31-
build.Deps.jarjarabrams,
3228
build.Deps.mainargs,
33-
build.Deps.scalaparse,
34-
mvn"org.apache.commons:commons-lang3:3.16.0"
29+
build.Deps.fastparse
3530
)
3631
}

0 commit comments

Comments
 (0)