-
I have the following code snippet in my build file: def mdocSources = T.sources { super.millSourcePath / "docs" }
def mdocDep: Task[Agg[Dep]] = T.task{
Agg(
ivy"org.scalameta::mdoc:${scalaMdocVersion}"
.exclude("org.scala-lang" -> "scala3-compiler_3")
.exclude("org.scala-lang" -> "scala3-library_3"),
ivy"org.scala-lang::scala3-compiler:${scalaVersion()}"
)
}
def mDocLibs = T{ resolveDeps(mdocDep) } which was working with version
So I changed def mdocDep: Task[Agg[mil.scalalib.BoundDep]] = T.task{
Agg(
ivy"org.scalameta::mdoc:${scalaMdocVersion}"
.exclude("org.scala-lang" -> "scala3-compiler_3")
.exclude("org.scala-lang" -> "scala3-library_3"),
ivy"org.scala-lang::scala3-compiler:${scalaVersion()}"
)
} So now I get the error:
Removing the explicit typing also did not help. A search in the documentation does not show anything. In the github repository, I did not find usage examples. The documentation does not seem to be changed in relation to setting up our libraries. What must I change to correct this? TIA |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It looks like you are using the in-development The API of There is currently no migration guide written, as Mill (Please note that I'm going to delete your other discussion entry (#2212), as it is almost identical to this one.) For a rough overview of the planned changes of Mill 0.11, you can also read the following discussion: |
Beta Was this translation helpful? Give feedback.
It looks like you are using the in-development
main
tree, which is currently released as0.11.0-M1
The API of
CoursierModule
,JavaModule
and its derivations changed slightly, so you need to adapt to the new type signatures, if you want to keep up with the latest development. See PR #1574 for details. Unfortunately, I made a typo in the package name ofBoundDep
, which I later fixed in #2214.There is currently no migration guide written, as Mill
0.11
isn't released yet.(Please note that I'm going to delete your other discussion entry (#2212), as it is almost identical to this one.)
For a rough overview of the planned changes of Mill 0.11, you can also read the following discussion: