2015-06-09 05:05:05 +08:00
|
|
|
enablePlugins(JavaServerAppPackaging)
|
2015-05-12 06:25:11 +08:00
|
|
|
|
2015-06-09 04:32:03 +08:00
|
|
|
name := "bbb-apps-akka"
|
2015-05-12 06:25:11 +08:00
|
|
|
|
|
|
|
organization := "org.bigbluebutton"
|
|
|
|
|
2015-08-27 01:51:05 +08:00
|
|
|
version := "0.0.2"
|
2015-05-12 06:25:11 +08:00
|
|
|
|
2015-10-17 03:23:33 +08:00
|
|
|
scalaVersion := "2.11.7"
|
2015-05-12 06:25:11 +08:00
|
|
|
|
|
|
|
scalacOptions ++= Seq(
|
|
|
|
"-unchecked",
|
|
|
|
"-deprecation",
|
|
|
|
"-Xlint",
|
|
|
|
"-Ywarn-dead-code",
|
|
|
|
"-language:_",
|
2015-05-14 04:23:49 +08:00
|
|
|
"-target:jvm-1.7",
|
2015-05-12 06:25:11 +08:00
|
|
|
"-encoding", "UTF-8"
|
|
|
|
)
|
|
|
|
|
|
|
|
resolvers ++= Seq(
|
|
|
|
"spray repo" at "http://repo.spray.io/",
|
2015-05-14 04:23:49 +08:00
|
|
|
"rediscala" at "http://dl.bintray.com/etaty/maven",
|
|
|
|
"blindside-repos" at "http://blindside.googlecode.com/svn/repository/"
|
2015-05-12 06:25:11 +08:00
|
|
|
)
|
|
|
|
|
2016-05-21 04:27:52 +08:00
|
|
|
resolvers += Resolver.sonatypeRepo("releases")
|
|
|
|
|
2015-05-12 06:25:11 +08:00
|
|
|
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
|
|
|
|
|
|
|
|
testOptions in Test += Tests.Argument(TestFrameworks.Specs2, "html", "console", "junitxml")
|
|
|
|
|
|
|
|
testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-h", "target/scalatest-reports")
|
|
|
|
|
|
|
|
libraryDependencies ++= {
|
2015-10-24 03:37:13 +08:00
|
|
|
val akkaVersion = "2.3.14"
|
2015-10-17 03:23:33 +08:00
|
|
|
val akkaStreamV = "1.0"
|
2015-10-27 03:00:04 +08:00
|
|
|
val scalaTestV = "2.2.4"
|
2015-05-12 06:25:11 +08:00
|
|
|
Seq(
|
2015-10-20 03:00:59 +08:00
|
|
|
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
|
|
|
|
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % "test",
|
|
|
|
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion,
|
|
|
|
"com.typesafe.akka" %% "akka-stream-experimental" % akkaStreamV,
|
|
|
|
"com.typesafe.akka" %% "akka-http-core-experimental" % akkaStreamV,
|
|
|
|
"com.typesafe.akka" %% "akka-http-experimental" % akkaStreamV,
|
|
|
|
"com.typesafe.akka" %% "akka-http-spray-json-experimental" % akkaStreamV,
|
|
|
|
"com.typesafe.akka" %% "akka-http-testkit-experimental" % akkaStreamV,
|
2015-10-27 03:00:04 +08:00
|
|
|
"org.scalatest" % "scalatest_2.11" % scalaTestV % "test",
|
2015-10-20 03:00:59 +08:00
|
|
|
"ch.qos.logback" % "logback-classic" % "1.0.13" % "runtime",
|
|
|
|
"org.pegdown" % "pegdown" % "1.4.0",
|
|
|
|
"junit" % "junit" % "4.11",
|
|
|
|
"com.etaty.rediscala" %% "rediscala" % "1.4.0",
|
|
|
|
"commons-codec" % "commons-codec" % "1.8",
|
|
|
|
"joda-time" % "joda-time" % "2.3",
|
2016-01-27 23:44:22 +08:00
|
|
|
"com.google.code.gson" % "gson" % "2.5",
|
2015-10-20 03:00:59 +08:00
|
|
|
"redis.clients" % "jedis" % "2.7.2",
|
|
|
|
"org.apache.commons" % "commons-lang3" % "3.2",
|
2016-05-16 23:35:36 +08:00
|
|
|
"org.bigbluebutton" % "bbb-common-message" % "0.0.18-SNAPSHOT",
|
2015-11-17 15:11:14 +08:00
|
|
|
"io.spray" %% "spray-json" % "1.3.2"
|
2016-05-16 23:35:36 +08:00
|
|
|
)
|
|
|
|
}
|
2015-05-12 06:25:11 +08:00
|
|
|
|
|
|
|
seq(Revolver.settings: _*)
|
|
|
|
|
2015-05-14 04:23:49 +08:00
|
|
|
scalariformSettings
|
2015-06-09 04:32:03 +08:00
|
|
|
|
|
|
|
|
|
|
|
//-----------
|
|
|
|
// Packaging
|
2015-06-09 05:50:30 +08:00
|
|
|
//
|
|
|
|
// Reference:
|
|
|
|
// https://github.com/muuki88/sbt-native-packager-examples/tree/master/akka-server-app
|
|
|
|
// http://www.scala-sbt.org/sbt-native-packager/index.html
|
2015-06-09 04:32:03 +08:00
|
|
|
//-----------
|
|
|
|
mainClass := Some("org.bigbluebutton.Boot")
|
|
|
|
|
2015-06-09 05:05:05 +08:00
|
|
|
maintainer in Linux := "Richard Alam <ritzalam@gmail.com>"
|
2015-06-11 04:45:57 +08:00
|
|
|
|
2015-06-09 05:05:05 +08:00
|
|
|
packageSummary in Linux := "BigBlueButton Apps (Akka)"
|
2015-06-11 04:45:57 +08:00
|
|
|
|
2015-06-09 04:32:03 +08:00
|
|
|
packageDescription := """BigBlueButton Core Apps in Akka."""
|
|
|
|
|
2015-06-09 05:50:30 +08:00
|
|
|
val user = "bigbluebutton"
|
2015-06-11 04:45:57 +08:00
|
|
|
|
2015-06-09 05:50:30 +08:00
|
|
|
val group = "bigbluebutton"
|
|
|
|
|
|
|
|
// user which will execute the application
|
|
|
|
daemonUser in Linux := user
|
2015-06-11 04:45:57 +08:00
|
|
|
|
2015-06-09 05:50:30 +08:00
|
|
|
// group which will execute the application
|
|
|
|
daemonGroup in Linux := group
|
|
|
|
|
|
|
|
mappings in Universal <+= (packageBin in Compile, sourceDirectory ) map { (_, src) =>
|
|
|
|
// Move the application.conf so the user can override settings here
|
|
|
|
val appConf = src / "main" / "resources" / "application.conf"
|
|
|
|
appConf -> "conf/application.conf"
|
|
|
|
}
|
|
|
|
|
2015-06-09 05:05:05 +08:00
|
|
|
mappings in Universal <+= (packageBin in Compile, sourceDirectory ) map { (_, src) =>
|
2015-06-09 05:50:30 +08:00
|
|
|
// Move logback.xml so the user can override settings here
|
|
|
|
val logConf = src / "main" / "resources" / "logback.xml"
|
|
|
|
logConf -> "conf/logback.xml"
|
2015-06-09 05:05:05 +08:00
|
|
|
}
|
|
|
|
|
2015-06-09 04:32:03 +08:00
|
|
|
debianPackageDependencies in Debian ++= Seq("java7-runtime-headless", "bash")
|