Hello everyone,
Iām new to Scala and I want to start my real first project. Up until now, I was using Scala 2.12.8, but I want to use version 2.13 for this project. However, when I try to execute sbt run
, I have the following errors (part of a bigger error message)
[error] (update) sbt.librarymanagement.ResolveException: unresolved dependency: org.scala-lang#scala-library;2.13: not found
[error] unresolved dependency: org.scala-lang#scala-reflect;2.13: not found
[error] unresolved dependency: org.scala-lang#scala-compiler;2.13: not found
To migrate to version 2.13, I upgraded scala via Homebrew. Running scala
in a terminal give me correct version
Welcome to Scala 2.13.0 (OpenJDK 64-Bit Server VM, Java 1.8.0_212).
My build.sbt
looks like this
ThisBuild / scalaVersion := "2.13"
ThisBuild / organization := "com.example"
lazy val hello = (project in file("."))
.settings(
name := "Hello",
libraryDependencies += "org.scalatest" % "scalatest_2.13" % "3.0.8" % "test"
)
and the sbt version is 1.2.8. Everything was working well when I was using scala 2.12.
Thanks for the help,
Maxime