libraries - How to add a scala library to eclipse -
(i'm not sure terminology, bare me please.) trying add together scala library eclipse add together available functions can utilize on actors. here library: https://github.com/scala/async
i've downloaded file , extracted , tried adding workspace in project explorer, when try, eclipse tells me can't find projects in file. i'm sure there tutorial or online explains how this, said, i'm not sure terminology, don't know search result want.
any help have appreciated. thanks!
the easiest way create sbt project , utilize sbteclipse plugin.
your project construction should this:
build.sbt project/build.properties project/eclipse.sbt build.sbt
(note lines of code should separated white line)
name := "projectname" librarydependencies += "org.scala-lang.modules" %% "scala-async" % "0.9.2" build.properties
sbt.version=0.13.5 eclipse.sbt
addsbtplugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.5.0") then root directory execute sbt , within sbt command line execute eclipse or eclipse with-sources=true
you can utilize sbt-extras or activator specialized version automatically download right sbt version based on build.properties file.
you add together sbteclipse plugin default plugin, making available in projects creating eclipse.sbt in ~/.sbt/0.13/plugins directory instead of project directory
scala libraries actor
No comments:
Post a Comment