如何用sbt新建akka项目
新建文件夹
mkdir akkademo sbt set name := “akkademo” set version := “1.0” set scalaVersion := “2.10.2” session save exit
设置build.sbt
vim build.sbt libraryDependencies ++= Seq( "com.typesafe.akka" %% "akka-actor" % "2.2.1", "com.typesafe.akka" %% "akka-testkit" % "2.2.1", "org.scalatest" %% "scalatest" % "1.9.1" % "test", "junit" % "junit" % "4.11" % "test", "com.novocode" % "junit-interface" % "0.10" % "test" ) testOptions += Tests.Argument(TestFrameworks.JUnit, "-v”)
设置plugins.sbt
cd project vim plugins.sbt addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.2”) addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.4.0”)
生成idea或eclipse支持
sbt gen-idea sbt eclipse (得有eclipse才能生成maven一样的项目组织结构)
相关推荐
TheBigBlue 2020-02-13
yunfenglee 2020-02-03
bigfoolee 2014-06-10
tianhouquan 2015-02-04
光哥 2015-01-13
莫问前程 2015-10-06
匆匆那些年 2014-06-10
woxiaozhi 2010-12-16
leadersnowy 2019-06-26
snaillup 2019-06-21
小琳子 2016-11-21
dbh 2016-11-21
陌涂 2016-01-18
BitTigerio 2018-05-13