Setting up a repo for the SBT launcher in the Travis assembly

Where can I redefine the URL of the repo that SBT uses to retrieve its launch 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 currently gives 404s, and as a result, builds do not work 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 
+5
source share
2 answers

Today I ran into the same problem and registered a problem for travis-ci: https://github.com/travis-ci/travis-ci/issues/4527

As a workaround, you can download sbt-launcher.jar by adding the 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 
+7
source

We just deployed a hotfix for production. SBT builds should now work.

Sorry for the inconvenience.

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

+1
source

All Articles