Skip to content

Commit 925fdab

Browse files
authored
Merge pull request #33 from Mingun/proxy-instructions
Add note about proxy configuring
2 parents 7e53bea + 6cb495b commit 925fdab

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

developers.adoc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,25 @@ automatically. It shouldn't really matter even which version of sbt
8484
you use for bootstrap, as sbt will pull relevant sbt update packages
8585
automatically as well.
8686

87+
=== Configuring proxy
88+
89+
Note, that if you behind proxy, you need to run `sbt` with flags
90+
[source]
91+
-Dhttp.proxyHost=<your proxy server>
92+
-Dhttp.proxyPort=<your proxy server port>
93+
-Dhttps.proxyHost=<your proxy server>
94+
-Dhttps.proxyPort=<your proxy server port>
95+
96+
For example
97+
[source,shell]
98+
sbt -Dhttp.proxyHost=proxy.com -Dhttp.proxyPort=3128 -Dhttps.proxyHost=proxy.com -Dhttps.proxyPort=3128
99+
100+
Unfortunately, `sbt` doesn't understand `http(s)_proxy` environment variable properly, if it contains
101+
address of proxy server in `host:port` format, so flags is necessary.
102+
103+
This flags needed only on first run or when you want to check and upgrade dependencies. After first `sbt`
104+
run all dependencies will be downloaded and access to the internet not required anymore.
105+
87106
=== Building for JVM
88107

89108
We use http://www.scala-sbt.org/sbt-native-packager/[sbt-native-packager] to

0 commit comments

Comments
 (0)