I've just recently started coding in Scala and I want to start working with RxScala but I haven't been able to figure out how to import it into Intellij. Does anyone know how to do this, I've spent the last few hours trying to figure this out and I'm no closer than when I started? Also I'm using Ubuntu if that effects anything.
Asked
Active
Viewed 273 times
1 Answers
1
Use SBT. IDEA automatically recognizes and imports SBT projects. You just need to create a basic build.sbt
file in the root folder containing
name := "your project"
organization := "your organization"
version := "x.y.z"
scalaVersion := "2.11.7"
libraryDependencies += "io.reactivex" %% "rxscala" % "0.25.0" // or whatever version you want to use
and "Open project" in IDEA.

Alexey Romanov
- 167,066
- 35
- 309
- 487
-
Definitely the simplest way to go. Plus you can easily share your project with people who use other IDEs or no IDE at all. – Samuel Gruetter Jun 30 '15 at 15:49
-
Suggested edit for this answer: You might have to install the SBT plugin in Intellij if it's not yet installed. – Samuel Gruetter Jun 30 '15 at 15:50
-
@SamuelGruetter SBT support is included in the Scala plugin since IDEA 13 http://blog.jetbrains.com/scala/2013/11/18/built-in-sbt-support-in-intellij-idea-13/ – Alexey Romanov Jun 30 '15 at 15:53