In the build.sbt file I want to add the ScalaMeter library. If the screen is not visible, then here is the contents of the file.

name := "Parallel" version := "1.0" scalaVersion := "2.12.0" resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots" libraryDependencies += "com.storm-enroute" %% "scalameter-core" % "0.7" 

I do not understand much about sbt and did as HERE

After adding the last line, IDEA immediately highlights the content in red and gives Unresolved dependency . After the update, I get this:

  Error:Error while importing SBT project:<br/>...<br/><pre>[info] Resolving org.scala-sbt#run;0.13.8 ... [info] Resolving org.scala-sbt#task-system;0.13.8 ... [info] Resolving org.scala-sbt#tasks;0.13.8 ... [info] Resolving org.scala-sbt#tracking;0.13.8 ... [info] Resolving org.scala-sbt#cache;0.13.8 ... [info] Resolving org.scala-sbt#testing;0.13.8 ... [info] Resolving org.scala-sbt#test-agent;0.13.8 ... [info] Resolving org.scala-sbt#test-interface;1.0 ... [info] Resolving org.scala-sbt#main-settings;0.13.8 ... [info] Resolving org.scala-sbt#apply-macro;0.13.8 ... [info] Resolving org.scala-sbt#command;0.13.8 ... [info] Resolving org.scala-sbt#logic;0.13.8 ... [info] Resolving org.scala-sbt#precompiled-2_8_2;0.13.8 ... [info] Resolving org.scala-sbt#precompiled-2_9_2;0.13.8 ... [info] Resolving org.scala-sbt#precompiled-2_9_3;0.13.8 ... [trace] Stack trace suppressed: run 'last *:update' for the full output. [trace] Stack trace suppressed: run 'last *:ssExtractDependencies' for the full output. [error] (*:update) sbt.ResolveException: unresolved dependency: com.storm-enroute#scalameter-core_2.12;0.7: not found [error] (*:ssExtractDependencies) sbt.ResolveException: unresolved dependency: com.storm-enroute#scalameter-core_2.12;0.7: not found [error] Total time: 8 s, completed Dec 2, 2016 12:33:07 PM</pre><br/>See complete log in <a href="/home/vovanrew/.IdeaIC2016.2/system/log/sbt.last.log">/home/vovanrew/.IdeaIC2016.2/system/log/sbt.last.log</a> 

Tell me how to properly install this dependency and connect the library?

    1 answer 1

    For scala 2.12 there is no such version of the scalameter-core artifact. Existing can be found here .

    Change either the artifact version or the rock version.

    • Changed the version of the rock to 2.10.0. The same problem - Vova Polischuck
    • A similar result with a rock 2.11. Strange, because on the website of the author of the library it is written that 2.10 and 2.11 will work - Vova Polischuck