Skip to content

Multiple non-Maven jars #1769

Answered by lefou
Sailsman63 asked this question in Q&A
Mar 8, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

You found an error in the documentation. Util.download requires a os.RelPath as second parameter, not a String. The fix is rather straight forward, you can create a RelPath with os.rel:

 def unmanagedClasspath = Agg(
     mill.modules.Util.download(
       "https://github.com/blackears/svgSalamander/releases/download/v1.1.3/svgSalamander-1.1.3.jar",
       os.rel / "svgSalamander.jar"
     )
    , mill.modules.Util.download(
      "https://github.com/beanshell/beanshell/releases/download/2.1.0/bsh-2.1.0.jar",
      os.rel / "bsh.jar"
    )
 )

The thirds error is an aftereffect of the first two. Because the body of the target definition doesn't type check, the compiler can't apply all the …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lefou
Comment options

lefou Mar 8, 2022
Maintainer

@Sailsman63
Comment options

Answer selected by Sailsman63
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