Skip to content

How to download Ivy dependencies "explicitly" taking the Scala version into account #2045

Answered by hmf
hmf asked this question in Q&A
Discussion options

You must be logged in to vote

@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:

  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 cp uses ivyDeps but rp does not. rp should just contain the de…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@hmf
Comment options

@lefou
Comment options

@hmf
Comment options

Answer selected by hmf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants