Hello,
I'm trying to run a very simple that I've found on the Rapture web page but I'm receiving "not found: object net" and "not found: value Http" errors. How can I fix this?
Please see my build.sbt and Scala source code below:
build.sbt
================================================================
name := "belga"
version := "1.0"
scalaVersion := "2.11.2"
libraryDependencies ++= Seq("com.propensive" %% "rapture-core" % "1.0.0")
libraryDependencies ++= Seq("com.propensive" %% "rapture-json-jackson" % "1.0.6")
libraryDependencies ++= Seq("com.propensive" %% "rapture-io" % "0.10.0")
Source code:
================================================================
import rapture._
import core._, io._, net._, uri._, codec._
object ArticleDownloader extends App {
Console.println("Article Downloader: " + (args mkString ", "))
// Read a file into a string
import encodings.`UTF-8`
}
sbt session with errors:
==========================================================================
> compile
[warn] Scala version was updated by one of library dependencies:
[warn] * org.scala-lang:scala-library:(2.11.2, 2.11.1, 2.11.0) -> 2.11.4
[warn] To force scalaVersion, add the following:
[warn] ivyScala := ivyScala.value map { _.copy(overrideScalaVersion = true) }
[warn] Run 'evicted' to see detailed eviction warnings
[info] Compiling 1 Scala source to /home/emre/code/scala/belga/target/scala-2.11/classes...
[error] /home/emre/code/scala/belga/src/main/scala/ArticleDownloader.scala:2: not found: object net
[error] import core._, io._, net._, uri._, codec._
[error] ^
[error] /home/emre/code/scala/belga/src/main/scala/ArticleDownloader.scala:9: not found: value Http
[error] ^
[error] two errors found
[error] (compile:compile) Compilation failed
[error] Total time: 3 s, completed Oct 31, 2014 11:41:08 AM