2016-03-06 03:24:47 +08:00
|
|
|
//enablePlugins(JavaServerAppPackaging)
|
|
|
|
enablePlugins(JettyPlugin)
|
|
|
|
|
|
|
|
name := "bbb-screenshare-akka"
|
|
|
|
|
|
|
|
organization := "org.bigbluebutton"
|
|
|
|
|
|
|
|
version := "0.0.1"
|
|
|
|
|
2016-03-06 07:03:26 +08:00
|
|
|
//scalaVersion := "2.11.6"
|
|
|
|
scalaVersion := "2.11.7"
|
2016-03-06 03:24:47 +08:00
|
|
|
|
|
|
|
scalacOptions ++= Seq(
|
|
|
|
"-unchecked",
|
|
|
|
"-deprecation",
|
|
|
|
"-Xlint",
|
|
|
|
"-Ywarn-dead-code",
|
|
|
|
"-language:_",
|
|
|
|
"-target:jvm-1.8", //TODO this was 1.7
|
|
|
|
"-encoding", "UTF-8"
|
|
|
|
)
|
|
|
|
|
|
|
|
resolvers ++= Seq(
|
|
|
|
"spray repo" at "http://repo.spray.io/",
|
|
|
|
"rediscala" at "http://dl.bintray.com/etaty/maven",
|
|
|
|
"blindside-repos" at "http://blindside.googlecode.com/svn/repository/"
|
|
|
|
)
|
|
|
|
|
|
|
|
publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/dev/repo/maven-repo/releases" )) )
|
|
|
|
|
|
|
|
// We want to have our jar files in lib_managed dir.
|
|
|
|
// This way we'll have the right path when we import
|
|
|
|
// into eclipse.
|
|
|
|
retrieveManaged := true
|
|
|
|
|
|
|
|
libraryDependencies ++= {
|
2016-03-06 07:03:26 +08:00
|
|
|
// val akkaVersion = "2.3.11"
|
|
|
|
val akkaVersion = "2.4.2"
|
2016-03-25 02:54:51 +08:00
|
|
|
val springVersion = "4.2.5.RELEASE"
|
2016-03-06 03:24:47 +08:00
|
|
|
Seq(
|
|
|
|
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
|
|
|
|
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % "test",
|
|
|
|
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion,
|
2016-03-09 06:58:38 +08:00
|
|
|
"com.typesafe" % "config" % "1.3.0",
|
2016-03-25 02:54:51 +08:00
|
|
|
"ch.qos.logback" % "logback-classic" % "1.1.6" % "runtime",
|
2016-03-06 03:24:47 +08:00
|
|
|
// "org.pegdown" % "pegdown" % "1.4.0",
|
|
|
|
// "junit" % "junit" % "4.11",
|
|
|
|
// "com.etaty.rediscala" %% "rediscala" % "1.4.0",
|
|
|
|
"commons-codec" % "commons-codec" % "1.8",
|
|
|
|
"redis.clients" % "jedis" % "2.7.2",
|
|
|
|
// "org.apache.commons" % "commons-lang3" % "3.2",
|
2016-08-10 05:58:20 +08:00
|
|
|
"org.apache.commons" % "commons-pool2" % "2.3",
|
2016-03-31 05:18:39 +08:00
|
|
|
"org.red5" % "red5-server" % "1.0.7-M10",
|
2016-03-09 06:58:38 +08:00
|
|
|
"com.google.code.gson" % "gson" % "1.7.1",
|
2016-03-06 03:24:47 +08:00
|
|
|
|
2016-03-11 05:45:47 +08:00
|
|
|
"org.springframework" % "spring-web" % springVersion,
|
|
|
|
"org.springframework" % "spring-beans" % springVersion,
|
|
|
|
"org.springframework" % "spring-context" % springVersion,
|
|
|
|
"org.springframework" % "spring-core" % springVersion,
|
|
|
|
"org.springframework" % "spring-webmvc" % springVersion,
|
|
|
|
"org.springframework" % "spring-aop" % springVersion,
|
2016-03-06 03:24:47 +08:00
|
|
|
"javax.servlet" % "servlet-api" % "2.5"
|
|
|
|
|
|
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
//seq(Revolver.settings: _*)
|
|
|
|
//
|
|
|
|
//scalariformSettings
|
|
|
|
|
|
|
|
|
|
|
|
//-----------
|
|
|
|
// Packaging
|
|
|
|
//
|
|
|
|
// Reference:
|
|
|
|
// https://github.com/muuki88/sbt-native-packager-examples/tree/master/akka-server-app
|
|
|
|
// http://www.scala-sbt.org/sbt-native-packager/index.html
|
|
|
|
//-----------
|
|
|
|
//mainClass := Some("org.bigbluebutton.deskshare.Boot")
|
|
|
|
|
|
|
|
maintainer in Linux := "Richard Alam <ritzalam@gmail.com>"
|
|
|
|
|
|
|
|
packageSummary in Linux := "BigBlueButton Apps (Akka)"
|
|
|
|
|
|
|
|
packageDescription := """BigBlueButton Screenshare in Akka."""
|
|
|
|
|
|
|
|
val user = "bigbluebutton"
|
|
|
|
|
|
|
|
val group = "bigbluebutton"
|
|
|
|
|
|
|
|
// user which will execute the application
|
|
|
|
daemonUser in Linux := user
|
|
|
|
|
|
|
|
// group which will execute the application
|
|
|
|
daemonGroup in Linux := group
|
|
|
|
|