开发者

How to override the location of .ivy2 directory when using sbt?

开发者 https://www.devze.com 2022-12-17 06:37 出处:网络
I\'m using the x开发者_StackOverflowsbt 0.6.10 launcher. I would like the ivy files and jar files to be downloaded under a different directory. What is the best way to do this?With sbt 0.6.12, this ca

I'm using the x开发者_StackOverflowsbt 0.6.10 launcher. I would like the ivy files and jar files to be downloaded under a different directory. What is the best way to do this?


With sbt 0.6.12, this can be done by overriding ivyCacheDirectory:

override def ivyCacheDirectory = Some(path("../ivycache")) 

See 0.6.11 announcement and IvyInterface for references.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号