Skip to content

Commit d92f826

Browse files
authored
Update build.mill
1 parent adf0040 commit d92f826

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build.mill

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//| - com.goyeau::mill-scalafix::0.6.0
77
package build
88
import build.docs
9-
import mill.main.VcsVersion
9+
import mill.util.VcsVersion
1010
import com.goyeau.mill.scalafix.ScalafixModule
1111
import mill._, scalalib._, publish._
1212

@@ -67,7 +67,7 @@ trait CommonBase extends ScalaModule with PublishModule with ScalafixModule { co
6767
def forkArgs = Seq("-Duser.timezone=Asia/Singapore")
6868

6969
def forkEnv = Map(
70-
"MILL_WORKSPACE_ROOT" -> Task.workspace.toString(),
70+
"MILL_WORKSPACE_ROOT" -> mill.api.BuildCtx.workspaceRoot.toString(),
7171
"SCALASQL_RECORDED_TESTS_NAME" -> recordedTestsFile,
7272
"SCALASQL_RECORDED_SUITE_DESCRIPTIONS_NAME" -> recordedSuiteDescriptionsFile
7373
)
@@ -250,13 +250,13 @@ trait ScalaSql extends Common { common =>
250250
val generatedCodeHeader = "[//]: # (GENERATED SOURCES, DO NOT EDIT DIRECTLY)"
251251
def generateTutorial() = Task.Command {
252252
docs.generateTutorial(
253-
Task.workspace / "scalasql" / "test" / "src" / "WorldSqlTests.scala",
254-
Task.workspace / "docs" / "tutorial.md"
253+
mill.api.BuildCtx.workspaceRoot / "scalasql" / "test" / "src" / "WorldSqlTests.scala",
254+
mill.api.BuildCtx.workspaceRoot / "docs" / "tutorial.md"
255255
)
256256
}
257257
def generateReference() = Task.Command {
258258
docs.generateReference(
259-
Task.workspace / "docs" / "reference.md",
259+
mill.api.BuildCtx.workspaceRoot / "docs" / "reference.md",
260260
(sources, config) =>
261261
mill.scalalib.scalafmt.ScalafmtWorkerModule
262262
.worker()

0 commit comments

Comments
 (0)