Last active
January 20, 2023 11:57
-
-
Save vrischmann/9970819 to your computer and use it in GitHub Desktop.
Revisions
-
vrischmann revised this gist
Apr 4, 2014 . 2 changed files with 17 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,20 @@ **WARNING** Not tested with the `sbt` script from the Debian package, if you use it be sure to check the `.sbtconfig` is correctly imported. Instructions ============ * Put `.sbtconfig` in $HOME/.sbtconfig * Put `credentials.sbt` in $HOME/.sbt/0.13/plugins/credentials.sbt * Put `.credentials` in $HOME/.ivy2/.credentials * Put `repositories`in $HOME/.sbt/repositories Nexus configuration =================== On your Nexus instance, you need to create two "Repository Groups", one called *ivy* and one called *maven*. The ivy one should include these two repositories: * http://repo.typesafe.com/typesafe/ivy-releases/ * http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/ The maven one should include at least the Maven Central repository, already configured in Nexus by default. You can add in this group any other repository you want, like the Aapche Snapshots repository or whatever. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ [repositories] local my-ivy-proxy-releases: http://nexus.company.com/nexus/content/groups/ivy/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext] my-maven-proxy-releases: http://nexus.company.com/nexus/content/groups/maven/ -
vrischmann created this gist
Apr 4, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ realm=Sonatype Nexus Repository Manager host=nexus.company.com user=admin password=admin123 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ export SBT_CREDENTIALS="$HOME/.ivy2/.credentials" export SBT_OPTS="-Dsbt.override.build.repos=true -Dfile.encoding=UTF8 -Xms1024m -Xmx1024m -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m" This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ Instructions ============ * Put `.sbtconfig` in $HOME/.sbtconfig * Put `credentials.sbt` in $HOME/.sbt/0.13/plugins/credentials.sbt * Put `.credentials` in $HOME/.ivy2/.credentials **WARNING** Not tested with the `sbt` script from the Debian package, if you use it be sure to check the `.sbtconfig` is correctly imported. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")