-
For override def scalaVersion = T{ "3.1.3" } I have the following code: def mDocLibs =
T{
import coursier._
val files = Fetch().addDependencies(dep"org.scalameta::mdoc:2.3.3").run()
val pathRefs = files.map(f => PathRef(os.Path(f)))
Agg(pathRefs : _*)
} In the project's module I also have: override def ivyDeps = Agg(
ivy"org.tensorflow:tensorflow-core-api:${tensorflowVersion}",
ivy"org.tensorflow:tensorflow-core-api:${tensorflowVersion};classifier=${javaCPPPlatform()}",
ivy"org.scalameta::mdoc:2.3.3"
) If I compare the output (just focusing on MDoc): val rp = mDocLibs().map(_.path)
val cp = runClasspath().map(_.path)
val s1 = Set(cp.toList:_*)
val s2 = Set(rp.toList:_*)
val s = s1 -- s2 I see that for the explicit download I have:
and its dependencies. But for the standard
and its dependencies. So what Mill API can I use to generate the TIA |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
-
@lefou thanks for the feedback. I am assuming that you are referring to the use of override def mdoc : T[PathRef] = T {
val rp = mDocLibs().map(_.path)
val cp = runClasspath().map(_.path)
val dir = T.dest.toIO.getAbsolutePath
val dirParams = mdocSources().map(pr => Seq(
"--classpath", toArgument(cp),
"--in", pr.path.toIO.getAbsolutePath,
"--out", dir)
).iterator.flatten.toSeq
Jvm.runLocal("mdoc.Main", rp, dirParams)
PathRef(T.dest)
} Note how the Hope this makes sense. Just as an aside. I can use the |
Beta Was this translation helpful? Give feedback.
@lefou thanks for the feedback. I am assuming that you are referring to the use of
override def ivyDeps
. However, I need to download these dependencies separately so that I can use them like this:Note how the
cp
usesivyDeps
butrp
does not.rp
should just contain the de…