huynhjl
huynhjl

Reputation: 41646

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

I'm using the xsbt 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?

Upvotes: 1

Views: 2670

Answers (1)

huynhjl
huynhjl

Reputation: 41646

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.

Upvotes: 1

Related Questions