How to install a library with a SBT library in an Intellij project

I am very new to SBT, Breeze, and IntelliJ, although I have a decent understanding of Scala and am trying to install the Breeze library, which I think is managed.

What I've done:

I followed the instructions on this page and added this script to a file build.sbtin my project:

libraryDependencies  ++= Seq(
            // other dependencies here
            "org.scalanlp" %% "breeze" % "0.10",
            // native libraries are not included by default. add this if you want them (as of 0.7)
            // native libraries greatly improve performance, but increase jar sizes.
            "org.scalanlp" %% "breeze-natives" % "0.10"
)

resolvers ++= Seq(
            // other resolvers here
            "Sonatype Releases" at "https://oss.sonatype.org/content/repositories/releases/"
)

// Scala 2.9.2 is still supported for 0.2.1, but is dropped afterwards.
scalaVersion := "2.11.1" // or 2.10.3 or later

Then I started sbt updatein the project directory (via the terminal) and saw that all fragments of Breeze were loaded.

Then I tried to restart sbt update, but this did not cause another boot.

Question:

, IntelliJ. import breeze._ Cannot resolve symbol breeze, " ". lib .

?

+4
1

IntelliJ, .idea IntelliJ .

+4

Source: https://habr.com/ru/post/1589242/


All Articles