Skip to content

Instantly share code, notes, and snippets.

@vrischmann
Last active January 20, 2023 11:57
Show Gist options
  • Select an option

  • Save vrischmann/9970819 to your computer and use it in GitHub Desktop.

Select an option

Save vrischmann/9970819 to your computer and use it in GitHub Desktop.

Revisions

  1. vrischmann revised this gist Apr 4, 2014. 2 changed files with 17 additions and 1 deletion.
    14 changes: 13 additions & 1 deletion README.md
    Original 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:

    **WARNING** Not tested with the `sbt` script from the Debian package, if you use it be sure to check the `.sbtconfig` is correctly imported.
    * 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.
    4 changes: 4 additions & 0 deletions repositories
    Original 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/
  2. vrischmann created this gist Apr 4, 2014.
    4 changes: 4 additions & 0 deletions .credentials
    Original 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
    2 changes: 2 additions & 0 deletions .sbtconfig
    Original 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"
    8 changes: 8 additions & 0 deletions README.md
    Original 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.
    1 change: 1 addition & 0 deletions credentials.sbt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")