Sbt failing to install

sbt

#1

Hi,

using sbt, without any modifications (I commented out everything in circle.yml), I get the following error:

cat /dev/null | sbt test:compile
Detected sbt version sbt.version = 0.13.9
Cannot find sbt launcher sbt.version = 0.13.9
Please download: 
  From  http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/sbt.version =     0.13.9/sbt-launch.jar

cat /dev/null | sbt test:compile returned exit code 1

To /home/ubuntu/.sbt/.lib/sbt.version/sbt-launch.jar Action failed: sbt test:compile

Docs list 0.13.9 as a supported version.

I tried the build again without cache, I get the same error.


#2

Hi there,

I’m seeing in our docs that the latest supported version of sbt is 13.1. You can use sbt 0.13.9 by adding the following to your circle.yml:

machine:
  environment:
    SBT_VERSION: 0.13.9
    SBT_OPTS: "-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M"
dependencies:
  cache_directories:
    - "~/.sbt"
  pre:
    - wget --output-document=$HOME/bin/sbt-launch.jar https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/"$SBT_VERSION"/sbt-launch.jar
    - echo "java $SBT_OPTS -jar \`dirname \$0\`/sbt-launch.jar \"\$@\"" > $HOME/bin/sbt
    - chmod u+x $HOME/bin/sbt
    - which sbt
    - sbt sbt-version

If this solves your problem, please mark the issue as solved by selecting the checkbox.

Cheers,
Frank


#3

Ah, I missed that. I was only looking at https://circleci.com/docs/environment/#scala

that solved it, thank you :slight_smile:


#6