How to configure Ivy cache directory per-user or system-wide?

前端 未结 7 1124
说谎
说谎 2020-12-02 09:38

I am using SBT as my build tool for building a Scala project.

My problem is, I can\'t configure SBT to download dependencies to my user home directory. Therefore I a

7条回答
  •  再見小時候
    2020-12-02 10:01

    You can simply add an environment variable to your sbt launch shell script:

    java -Dsbt.ivy.home=/tmp/.ivy2/ ...
    

    See Library Management in the official documentation.

提交回复
热议问题