tonicebrian tonicebrian - 10 days ago 6
Scala Question

How to make -Dsbt.override.build.repos=true global for SBT?

I want to override all repos even the ones introduced inadvertently in my

build.sbt
files so we can point to our proxy and have a common binary base for all the team. The option

$ sbt -Dsbt.override.build.repos=true


does the job but I'd like to make this option permanent. I've been looking at http://www.scala-sbt.org/release/docs/Global-Settings.html but I don't know how to translate that option to the
global.sbt
file they mention.

How would you configure that option globally?

Answer

Add -Dsbt.override.build.repos=true to the SBT_OPTS environment variable

Comments