Skip to content

Commit

Permalink
build: make sure launcher is downloaded from correct repo
Browse files Browse the repository at this point in the history
(cherry picked from commit abb6aa4)
  • Loading branch information
jrudolph committed Apr 19, 2021
1 parent 5dc5ab1 commit 3ad12e3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ before_install:
- git remote set-branches --add origin master && git fetch
- whereis java
- java -version
# Initialize launcher from the correct URL so that later sbt runs work out of the box.
# Travis' default sbt launch script refers to `repo.scala-sbt.org` for downloading the launcher
# which currently doesn't work any more
- sbt -sbt-launch-repo https://repo1.maven.org/maven2 exit

addons:
apt:
Expand All @@ -33,7 +37,7 @@ before_cache:
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
- $HOME/.sbt
- $HOME/.cache/coursier

env:
Expand All @@ -44,8 +48,6 @@ env:
- CI_SONATYPE_RELEASE="; sonatypePrepare; sonatypeBundleUpload; sonatypeClose"

script:
- jabba use "[email protected]"
- java -version
- sbt -jvm-opts .jvmopts-travis "$CMD"

jobs:
Expand Down

0 comments on commit 3ad12e3

Please sign in to comment.