|
1 | 1 | import $file.docs.generateDocs
|
2 | 2 | import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version::0.4.0`
|
3 | 3 | import $ivy.`com.github.lolgab::mill-mima::0.1.0`
|
4 |
| -import $ivy.`com.goyeau::mill-scalafix::0.4.0` |
| 4 | +import $ivy.`com.goyeau::mill-scalafix::0.4.2` |
5 | 5 | import de.tobiasroeser.mill.vcs.version.VcsVersion
|
6 | 6 | import com.goyeau.mill.scalafix.ScalafixModule
|
7 | 7 | import mill._, scalalib._, publish._
|
@@ -67,6 +67,7 @@ trait ScalaSql extends Common{ common =>
|
67 | 67 | def testFramework = "scalasql.UtestFramework"
|
68 | 68 |
|
69 | 69 | def forkArgs = Seq("-Duser.timezone=Asia/Singapore")
|
| 70 | + def forkEnv = Map("MILL_WORKSPACE_ROOT" -> T.workspace.toString()) |
70 | 71 | }
|
71 | 72 |
|
72 | 73 | private def indent(code: Iterable[String]): String =
|
@@ -212,13 +213,13 @@ trait ScalaSql extends Common{ common =>
|
212 | 213 | val generatedCodeHeader = "[//]: # (GENERATED SOURCES, DO NOT EDIT DIRECTLY)"
|
213 | 214 | def generateTutorial() = T.command {
|
214 | 215 | generateDocs.generateTutorial(
|
215 |
| - os.pwd / "scalasql" / "test" / "src" / "WorldSqlTests.scala", |
216 |
| - os.pwd / "docs" / "tutorial.md" |
| 216 | + T.workspace / "scalasql" / "test" / "src" / "WorldSqlTests.scala", |
| 217 | + T.workspace / "docs" / "tutorial.md" |
217 | 218 | )
|
218 | 219 | }
|
219 | 220 | def generateReference() = T.command {
|
220 | 221 | generateDocs.generateReference(
|
221 |
| - os.pwd / "docs" / "reference.md", |
| 222 | + T.workspace / "docs" / "reference.md", |
222 | 223 | (sources, config) =>
|
223 | 224 | mill.scalalib.scalafmt.ScalafmtWorkerModule
|
224 | 225 | .worker()
|
|
0 commit comments