score:32
Your scalatest dependency is misconfigured. You want scalatest version 2.6 published for Scala 2.12. There is no such combination, hence your build fails. If you have a look at which version of scalatest is available for Scala 2.12, here's the link. As you can see, it's only version 3.0.0. So, you have 3 options (those are changes in your build.sbt
file you need to make):
- Update your scalatest version to 3.0.0:
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.0" % Test
- Downgrade your Scala version to 2.11:
scalaVersion := "2.11.8"
- Both of the above
I'd say it's a bit too early to use Scala 2.12, since it was only released a couple of days ago, and not all of the dependencies are published for it yet. Scala major versions (2.11 vs 2.12 is a major version upgrade for Scala) are not binary compatible, so you can't use a library compiled with one Scala version in a project that uses the other.
At the same time, I'd go with scalatest 3.0.0 version, since it's the stable one. So all in all, I'd go for option 3 at the moment, even though options 1 and 2 will fix this particular problem, in different ways.
Source: stackoverflow.com
Related Query
- "Project refresh failed error" while opening a SBT Project in IntelliJ IDEA
- IntelliJ IDEA 13: new Scala SBT project hasn't src directory structure generated
- IntelliJ 14 - Create / Import a Scala / SBT project
- SBT project refresh failed [IntelliJ, Scala, SBT]
- Why it took so long to download sbt dependencies when I create a scala project in intellij idea?
- Failed to refresh gradle project in IntelliJ IDEA 2016.1: Unknown method ScalaCompileOptions.getForce()
- Why intellij import project from SBT failed
- How to synchronize Intellij and sbt builds for a scala project
- How to debug a Scala SBT project in IntelliJ 13?
- How to avoid adding a 'root' scala sbt project in IntelliJ when defining github dependencies?
- How to Point Intellij at SBT Libraries for Scala Project
- Intellij 15.0.5 issue with SBT and Scala project
- Creating SBT Project in IntelliJ Ultimate 13.1.1 with Scala plugin gives no New > Scala object for src/main/scala?
- How to attach sources to scala sbt project at Intellij Idea?
- sbt version and scala version. project configuration for intellij idea with sbt-idea plugin
- How can I use scala sources from a different location in a sbt project and also make it work with IntelliJ IDEA?
- "Need to install JAI Image I/O package." error when using tess4j in IntelliJ IDEA Scala SBT project
- Class Not Found running Scala in IntelliJ SBT project
- SBT <project name> project refresh failed
- Fixing my Scala Intellij project when loading it from an existing project in sbt and dependencies download fails
- Intellij [ Scala + SBT] error while importing SBT project
- sbt build failed in Intellij but I want to open the project anyways
- Unresolved dependencies path SBT - Scala Intellij Project
- importing sbt scala project to intellij idea takes long time
- Pros and cons of using sbt vs maven in Scala project
- How to create SBT project with IntelliJ Idea?
- IntelliJ Cannot Import sbt Project
- No 'scala-library*.jar' in every new IntelliJ Scala Project
- How to add Jar libraries to an IntelliJ Idea SBT Scala project?
- Intellij scala worksheet can't find project classes
More Query from same tag
- Non blocking reading in Scala without framing
- How can I use an implicit function with two parameters (Scala)?
- How to call an overloaded method from a generic type
- Currying with 3 functions in Scala
- WordCount on Azure using hadoop and spark
- How can I make this method more Scalalicious
- Build error for Scala Slick 2.0.0
- How to override Scala generic methods for specific types?
- Data filtering in Spark
- Keep track of completed Futures
- Building a reverse proxy
- How do I set a proxy server when using dispatch.Http?
- How can I get a byte that represents an unsigned int in Java?
- Function signature for returning a function with generics and implicits?
- Edit csv file in Scala
- Incremental processing in an akka actor
- How to convert a type Any List to a type Double (Scala)
- Merge dataframe into Google bigquery using spark and scala
- code block following creation of new object in scala
- Spark Dataframe Exception
- Unable to return a json inside Future[JsValue] from a WebSocket in Play 2.4
- Scala/Spark randomSplit
- spark: merge two dataframes, if ID duplicated in two dataframes, the row in df1 overwrites the row in df2
- Does Scala's Vector add any new methods on top of those provided by Seq and other superclasses?
- Slick 3 MySQL RAND() and update
- How can I create Hierarchical Container in Vaadin when I am having the duplicate ItemIds? If No, What is the alternate?
- Dependency injection with abstract class and object in Play Framework 2.5
- Why does the Scala worksheet evaluate the stream?
- Different Akka Actor instances receive messages
- The improved solution for 2 sum algorithm