Skip to content

ZipException with compile-only unmanagedClasspath #1667

Answered by lefou
Sailsman63 asked this question in Q&A
Discussion options

You must be logged in to vote

To contribute compile-only artifacts, you can try to add them directly to compileClasspath.

In case these artifacts are suspected to change (which I assumes as this is the outcome of another build process),
I suggest to make it a source target, to properly rebuild when they've changed.

def compileOnlyClasspath = T.sources {
  os.list(millSourcePath / os.up / os.up / "Baz" / "Deployment").map(PathRef(_))
}
def compileClasspath = T{
  super.compileClasspath() ++ compileOnlyClasspath()
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@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