diff --git a/build.sbt b/build.sbt index 33c336e..33be37e 100644 --- a/build.sbt +++ b/build.sbt @@ -16,8 +16,7 @@ lazy val root = (project in file(".")) scalaBinaryVersion := "2.13", javacOptions ++= Seq("-source", "11", "-target", "11"), scalacOptions ++= Seq("-deprecation"), - scalafmtOnCompile := true, - useCoursier := false + scalafmtOnCompile := true ) .settings( libraryDependencies ++= Seq( diff --git a/project/build.properties b/project/build.properties index bb6892a..c43fc2c 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1,2 +1,2 @@ # suppress inspection "UnusedProperty" for whole file -sbt.version=1.12.13 +sbt.version=2.0.3 diff --git a/scripts/test-sbt b/scripts/test-sbt index 2ce212b..a65c2ce 100644 --- a/scripts/test-sbt +++ b/scripts/test-sbt @@ -3,4 +3,8 @@ echo "+----------------------------+" echo "| Executing tests using sbt |" echo "+----------------------------+" -sbt ++$TRAVIS_SCALA_VERSION test \ No newline at end of file +if [[ -n "${TRAVIS_SCALA_VERSION:-}" ]]; then + sbt "++$TRAVIS_SCALA_VERSION ; test" +else + sbt test +fi