Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure repo for SBT launcher in Travis build

Where can I override the repo URL that SBT uses to fetch its launcher when the SBT instance is provided by Travis-CI?

http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.8/sbt-launch.jar is currently giving 404s and, as a result, the builds are failing on Travis with:

$ sbt clean dependencyUpdates coverage test coverageReport
Detected sbt version 0.13.8
Downloading sbt launcher for 0.13.8:
  From  http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.8/sbt-launch.jar
    To  /home/travis/.sbt/launchers/0.13.8/sbt-launch.jar
Download failed. Obtain the jar manually and place it at /home/travis/.sbt/launchers/0.13.8/sbt-launch.jar
like image 676
Synesso Avatar asked Jul 22 '15 07:07

Synesso


2 Answers

I ran into the same problem today, and logged an issue for travis-ci: https://github.com/travis-ci/travis-ci/issues/4527

As a workaround, you can download the sbt-launcher.jar by adding a before_script section to your .travis.yml

before_script:
- mkdir -p $HOME/.sbt/launchers/0.13.8/
- curl -L -o $HOME/.sbt/launchers/0.13.8/sbt-launch.jar http://dl.bintray.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.8/sbt-launch.jar
like image 184
Matthijs Dekker Avatar answered Nov 05 '22 02:11

Matthijs Dekker


We just deployed the fix to production. SBT builds should be working now.

Sorry for the inconvenience.

https://github.com/travis-ci/travis-ci/issues/4527#issuecomment-124123880

like image 1
banzaiman Avatar answered Nov 05 '22 03:11

banzaiman