Skip to content

Commit

Permalink
developers.adoc: updated with fresh sbt installation instructions, fo…
Browse files Browse the repository at this point in the history
…rmatting fixes
  • Loading branch information
GreyCat committed May 31, 2024
1 parent 3ff727f commit 66a7d12
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions developers.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,19 @@ For Debian/Ubuntu, this should be enough to download every
prerequisite (JRE is pulled automatically by sbt):

[source,shell]
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add
sudo apt-get update
sudo apt-get install sbt

For RedHat-based systems, use the following:

[source,shell]
curl -L https://www.scala-sbt.org/sbt-rpm.repo > sbt-rpm.repo
sudo mv sbt-rpm.repo /etc/yum.repos.d/
sudo yum install sbt

Manual installation:

* https://www.java.com/en/download/[Download JRE from official site]
Expand All @@ -86,13 +94,15 @@ automatically as well.
=== Configuring proxy

Note, that if you behind proxy, you need to run `sbt` with flags

[source]
-Dhttp.proxyHost=<your proxy server>
-Dhttp.proxyPort=<your proxy server port>
-Dhttps.proxyHost=<your proxy server>
-Dhttps.proxyPort=<your proxy server port>

For example

[source,shell]
sbt -Dhttp.proxyHost=proxy.com -Dhttp.proxyPort=3128 -Dhttps.proxyHost=proxy.com -Dhttps.proxyPort=3128

Expand Down

0 comments on commit 66a7d12

Please sign in to comment.