forked from com-lihaoyi/mill
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
b55ca58
commit 1580715
Showing
25 changed files
with
149 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package build.core.api | ||
|
||
import mill.contrib.buildinfo.BuildInfo | ||
import mill._ | ||
|
||
object `package` extends RootModule with build.MillStableScalaModule with BuildInfo { | ||
def moduleDeps = Seq(build.core.client) | ||
def buildInfoPackageName = "mill.api" | ||
def buildInfoMembers = Seq( | ||
BuildInfo.Value("millVersion", build.millVersion(), "Mill version."), | ||
BuildInfo.Value("millDocUrl", build.Settings.docUrl, "Mill documentation url."), | ||
BuildInfo.Value( | ||
"millReportNewIssueUrl", | ||
build.Settings.newIssueUrl, | ||
"URL to create a new issue in Mills issue tracker." | ||
) | ||
) | ||
|
||
def ivyDeps = Agg( | ||
build.Deps.osLib, | ||
build.Deps.mainargs, | ||
build.Deps.upickle, | ||
build.Deps.pprint, | ||
build.Deps.fansi, | ||
build.Deps.sbtTestInterface | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package build.core.client | ||
|
||
import mill._ | ||
import mill.contrib.buildinfo.BuildInfo | ||
import mill.scalalib._ | ||
|
||
object `package` extends RootModule with build.MillPublishJavaModule with BuildInfo { | ||
def buildInfoPackageName = "mill.main.client" | ||
def buildInfoMembers = Seq(BuildInfo.Value("millVersion", build.millVersion(), "Mill version.")) | ||
|
||
object test extends JavaTests with TestModule.Junit4 { | ||
def ivyDeps = Agg(build.Deps.junitInterface, build.Deps.commonsIo) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package build.core.define | ||
|
||
import mill._ | ||
import mill.scalalib._ | ||
|
||
object `package` extends RootModule with build.MillStableScalaModule { | ||
def moduleDeps = Seq(build.core.api) | ||
|
||
def compileIvyDeps = Task { | ||
if (scalaVersion().startsWith("3.")) Agg(build.Deps.scalaCompiler(scalaVersion())) | ||
else Agg(build.Deps.scalaReflect(scalaVersion())) | ||
} | ||
|
||
def ivyDeps = Agg( | ||
build.Deps.millModuledefs, | ||
// TODO: somewhere sourcecode is included transitively, | ||
// but we need the latest version to bring the macro improvements. | ||
build.Deps.sourcecode, | ||
// Necessary so we can share the JNA classes throughout the build process | ||
build.Deps.jna, | ||
build.Deps.jnaPlatform, | ||
build.Deps.jarjarabrams, | ||
build.Deps.mainargs, | ||
build.Deps.scalaparse | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
package mill.define | ||
|
||
import mill.api.PathRef | ||
import mill.internal.Watchable | ||
|
||
import scala.collection.mutable | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
core/internal/src/mill/internal/Lazy.scala → core/define/src/mill/define/Lazy.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package mill.internal | ||
package mill.define | ||
|
||
class Lazy[T](t: () => T) { | ||
lazy val value: T = t() | ||
|
2 changes: 1 addition & 1 deletion
2
...nternal/src/mill/internal/Watchable.scala → core/define/src/mill/define/Watchable.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package mill.internal | ||
package mill.define | ||
|
||
import mill.api.internal | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package build.core.exec | ||
|
||
import mill._ | ||
|
||
object `package` extends RootModule with build.MillStableScalaModule { | ||
def moduleDeps = Seq(build.core.define, build.core.internal) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package build.core.internal | ||
|
||
import mill._ | ||
|
||
object `package` extends RootModule with build.MillPublishScalaModule { | ||
def moduleDeps = Seq(build.core.api) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,8 @@ | ||
package build.core | ||
// imports | ||
import mill._ | ||
import mill.scalalib._ | ||
import mill.contrib.buildinfo.BuildInfo | ||
import mill.T | ||
import mill.define.Cross | ||
import mill.scalalib.api.ZincWorkerUtil | ||
|
||
object `package` extends RootModule with build.MillStableScalaModule { | ||
def moduleDeps = Seq(define, exec, resolve) | ||
object api extends build.MillStableScalaModule with BuildInfo { | ||
def moduleDeps = Seq(client) | ||
def buildInfoPackageName = "mill.api" | ||
def buildInfoMembers = Seq( | ||
BuildInfo.Value("millVersion", build.millVersion(), "Mill version."), | ||
BuildInfo.Value("millDocUrl", build.Settings.docUrl, "Mill documentation url."), | ||
BuildInfo.Value( | ||
"millReportNewIssueUrl", | ||
build.Settings.newIssueUrl, | ||
"URL to create a new issue in Mills issue tracker." | ||
) | ||
) | ||
|
||
def ivyDeps = Agg( | ||
build.Deps.osLib, | ||
build.Deps.mainargs, | ||
build.Deps.upickle, | ||
build.Deps.pprint, | ||
build.Deps.fansi, | ||
build.Deps.sbtTestInterface | ||
) | ||
} | ||
|
||
object internal extends build.MillPublishScalaModule { | ||
def moduleDeps = Seq(api) | ||
} | ||
object define extends build.MillStableScalaModule { | ||
def moduleDeps = Seq(api, internal) | ||
def compileIvyDeps = Task { | ||
if (ZincWorkerUtil.isScala3(scalaVersion())) Agg(build.Deps.scalaCompiler(scalaVersion())) | ||
else Agg(build.Deps.scalaReflect(scalaVersion())) | ||
} | ||
def ivyDeps = Agg( | ||
build.Deps.millModuledefs, | ||
// TODO: somewhere sourcecode is included transitively, | ||
// but we need the latest version to bring the macro improvements. | ||
build.Deps.sourcecode, | ||
// Necessary so we can share the JNA classes throughout the build process | ||
build.Deps.jna, | ||
build.Deps.jnaPlatform, | ||
build.Deps.jarjarabrams, | ||
build.Deps.mainargs, | ||
build.Deps.scalaparse | ||
) | ||
} | ||
|
||
object exec extends build.MillStableScalaModule { | ||
def moduleDeps = Seq(define) | ||
} | ||
|
||
object resolve extends build.MillStableScalaModule { | ||
def moduleDeps = Seq(define) | ||
} | ||
|
||
object client extends build.MillPublishJavaModule with BuildInfo { | ||
def buildInfoPackageName = "mill.main.client" | ||
def buildInfoMembers = Seq(BuildInfo.Value("millVersion", build.millVersion(), "Mill version.")) | ||
|
||
object test extends JavaTests with TestModule.Junit4 { | ||
def ivyDeps = Agg(build.Deps.junitInterface, build.Deps.commonsIo) | ||
} | ||
} | ||
|
||
object server extends build.MillPublishScalaModule { | ||
def moduleDeps = Seq(client, api) | ||
} | ||
def moduleDeps = Seq(build.core.define, build.core.exec, build.core.resolve) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package build.core.resolve | ||
|
||
import mill._ | ||
|
||
object `package` extends RootModule with build.MillStableScalaModule { | ||
def moduleDeps = Seq(build.core.define, build.core.internal) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package build.core.server | ||
|
||
import mill._ | ||
|
||
object `package` extends RootModule with build.MillPublishScalaModule { | ||
def moduleDeps = Seq(build.core.client, build.core.api) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.