如何为 SBT 设置 -Dsbt.override.build.repos=true 全局? [英] How to make -Dsbt.override.build.repos=true global for SBT?
问题描述
我想覆盖所有存储库,即使是在我的 build.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
完成这项工作,但我想让这个选项永久存在.我一直在看 http://www.scala-sbt.org/release/docs/Global-Settings.html 但我不知道如何将该选项转换为他们提到的 global.sbt
文件.
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?
推荐答案
将 -Dsbt.override.build.repos=true
添加到 SBT_OPTS
环境变量
Add -Dsbt.override.build.repos=true
to the SBT_OPTS
environment variable
这篇关于如何为 SBT 设置 -Dsbt.override.build.repos=true 全局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!