Skip to content

Commit aaf820e

Browse files
authored
Merge branch 'main' into consolidate-jvm-subprocess-and-inprocess-functions
2 parents 15334e2 + 1c100f7 commit aaf820e

File tree

124 files changed

+1276
-926
lines changed

Some content is hidden

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

124 files changed

+1276
-926
lines changed

build.mill

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ object Deps {
158158
val junitInterface = ivy"com.github.sbt:junit-interface:0.13.3"
159159
val commonsIo = ivy"commons-io:commons-io:2.18.0"
160160
val log4j2Core = ivy"org.apache.logging.log4j:log4j-core:2.24.3"
161-
val osLib = ivy"com.lihaoyi::os-lib:0.11.4-M5"
161+
val osLib = ivy"com.lihaoyi::os-lib:0.11.4-M6"
162162
val pprint = ivy"com.lihaoyi::pprint:0.9.0"
163163
val mainargs = ivy"com.lihaoyi::mainargs:0.7.6"
164164
val millModuledefsVersion = "0.11.3-M3"
@@ -398,7 +398,7 @@ trait MillJavaModule extends JavaModule {
398398

399399
def writeLocalTestOverrides = Task.Anon {
400400
for ((k, v) <- testTransitiveDeps()) {
401-
os.write(Task.dest / "mill" / "local-test-overrides" / k, v, createFolders = true)
401+
os.write(Task.dest / "mill/local-test-overrides" / k, v, createFolders = true)
402402
}
403403
Seq(PathRef(Task.dest))
404404
}

contrib/playlib/src/mill/playlib/Layout.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import mill.scalalib._
55

66
private[playlib] trait Layout extends JavaModule {
77

8-
def conf = Task.Sources { millSourcePath / "conf" }
9-
def app = Task.Sources { millSourcePath / "app" }
8+
def conf = Task.Sources { "conf" }
9+
def app = Task.Sources { "app" }
1010

1111
override def sources = Task { app() }
1212
override def resources = Task { conf() }

contrib/playlib/src/mill/playlib/RouterModule.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import mill.{Agg, T, Task}
99

1010
trait RouterModule extends ScalaModule with Version {
1111

12-
def routes: T[Seq[PathRef]] = Task.Sources { millSourcePath / "routes" }
12+
def routes: T[Seq[PathRef]] = Task.Sources { "routes" }
1313

1414
def routeFiles = Task {
1515
val paths = routes().flatMap(file => os.walk(file.path))

contrib/playlib/src/mill/playlib/Static.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ trait Static extends ScalaModule {
2525
/**
2626
* Directories to include assets from
2727
*/
28-
def assetSources = Task.Sources { millSourcePath / assetsPath() }
28+
def assetSources = Task.Sources { os.sub / assetsPath() }
2929

3030
/*
3131
Collected static assets for the project

contrib/versionfile/src/mill/contrib/versionfile/VersionFileModule.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import mill._
55
trait VersionFileModule extends Module {
66

77
/** The file containing the current version. */
8-
def versionFile: T[PathRef] = Task.Source(millSourcePath / "version")
8+
def versionFile: T[PathRef] = Task.Source("version")
99

1010
/** The current version. */
1111
def currentVersion: T[Version] = Task { Version.of(os.read(versionFile().path).trim) }

dist/package.mill

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ trait InstallModule extends build.MillPublishJavaModule {
4141
def installLocalCache() = Task.Command {
4242
val path = installLocalTask(
4343
Task.Anon(
44-
(os.home / ".cache" / "mill" / "download" / (build.millVersion() + batExt)).toString()
44+
(os.home / ".cache/mill/download" / (build.millVersion() + batExt)).toString()
4545
)
4646
)()
4747
Task.log.outputStream.println(path.toString())

docs/modules/ROOT/nav.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@
102102
** xref:extending/meta-build.adoc[]
103103
** xref:extending/example-typescript-support.adoc[]
104104
** xref:extending/example-python-support.adoc[]
105+
* xref:large/large.adoc[]
106+
** xref:large/selective-execution.adoc[]
107+
** xref:large/multi-file-builds.adoc[]
108+
** xref:large/multi-language-builds.adoc[]
105109
// This section focuses on diving into deeper, more advanced topics for Mill.
106110
// These are things that most Mill developers would not encounter day to day,
107111
// but people developing Mill plugins or working on particularly large or
108112
// sophisticated Mill builds will need to understand.
109-
* xref:large/large.adoc[]
110-
** xref:large/selective-execution.adoc[]
111-
** xref:large/multi-file-builds.adoc[]
112-
113113
* Mill In Depth
114114
** xref:depth/sandboxing.adoc[]
115115
** xref:depth/execution-model.adoc[]

docs/modules/ROOT/pages/comparisons/maven.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ import $ivy.`ant:ant-optional:1.5.3-1`
391391

392392
object common extends NettyModule{
393393
...
394-
def script = Task.Source(millSourcePath / "src" / "main" / "script")
394+
def script = Task.Source("src" / "main" / "script")
395395
def generatedSources0 = Task {
396396
val shell = new groovy.lang.GroovyShell()
397397
val context = new java.util.HashMap[String, Object]
@@ -520,8 +520,8 @@ with the `make` command essentially being a bash script wrapped in layers of XML
520520
In contrast, the Mill configuration for this logic is as follows:
521521

522522
```scala
523-
def makefile = Task.Source(millSourcePath / "Makefile")
524-
def cSources = Task.Source(millSourcePath / "src" / "main" / "c")
523+
def makefile = Task.Source("Makefile")
524+
def cSources = Task.Source("src" / "main" / "c")
525525
def cHeaders = Task {
526526
for(p <- os.walk(cSources().path) if p.ext == "h"){
527527
os.copy(p, Task.dest / p.relativeTo(cSources().path), createFolders = true)

docs/modules/ROOT/pages/comparisons/unique.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ them into classfiles, and then the `jar` executable to package them together int
176176
```scala
177177
def mainClass: T[Option[String]] = Some("foo.Foo")
178178

179-
def sources = Task.Source(millSourcePath / "src")
180-
def resources = Task.Source(millSourcePath / "resources")
179+
def sources = Task.Source("src")
180+
def resources = Task.Source("resources")
181181

182182
def compile = Task {
183183
val allSources = os.walk(sources().path)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
= Multi-Language Builds
2+
:page-aliases: Multi_Language_Builds.adoc
3+
4+
include::partial$example/large/multi/14-multi-language.adoc[]

0 commit comments

Comments
 (0)