Using sbt 0.11.2? Ok, here's what you want:
java -Dsbt.boot.properties=/path/to/my/hacked/boot/repos/boot.properties
Then in your hacked file:
[scala]
version: ${{scala.version}}
[app]
org: ${{org}}
name: sbt
version: read(sbt.version)[${{sbt.version}}]
class: ${sbt.main.class-sbt.xMain}
components: xsbti,extra
cross-versioned: true
[repositories]
local
company-proxy: <url>
company-proxy-ivy: <url>, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
[boot]
directory: ${sbt.boot.directory-${sbt.global.base-${user.home}/.sbt}/boot/}
[ivy]
ivy-home: ${sbt.ivy.home-${user.home}/.ivy2/}
checksums: ${sbt.checksums-sha1,md5}
THEN! You need to rewire your builds to only use these repos. Something akin to:
fullResolvers <<= (projectResolver,fullResolvers,bootResolvers) map {
(proj,old, boot) =>
boot map (proj +: _) getOrElse old
}
In ~/.sbt/usebootresolvers.sbt
That *should* make it so sbt 0.11.2 uses your local company proxy for all resolution. Note: Your local company proxy better be able to handle resolving ivy repos.
If you want to just run locally, then alter the boot.properties [repositories] secton so it only has "local".
Hope that helps! (note: in SBT 0.12, it's now just two flags to SBT to fix this rather than the elaborate setup).
- Josh