2018-11-08 21:53:00 +08:00
|
|
|
import org.bigbluebutton.build._
|
2015-05-12 06:25:11 +08:00
|
|
|
|
2018-12-12 05:33:07 +08:00
|
|
|
import NativePackagerHelper._
|
2018-11-08 21:53:00 +08:00
|
|
|
import com.typesafe.sbt.SbtNativePackager.autoImport._
|
2015-05-12 06:25:11 +08:00
|
|
|
|
2018-11-08 21:53:00 +08:00
|
|
|
enablePlugins(JavaServerAppPackaging)
|
2018-12-12 05:33:07 +08:00
|
|
|
enablePlugins(UniversalPlugin)
|
|
|
|
enablePlugins(DebianPlugin)
|
2015-05-12 06:25:11 +08:00
|
|
|
|
2018-12-12 05:33:07 +08:00
|
|
|
version := "0.0.4"
|
2018-11-08 21:53:00 +08:00
|
|
|
|
|
|
|
val compileSettings = Seq(
|
|
|
|
organization := "org.bigbluebutton",
|
|
|
|
|
|
|
|
scalacOptions ++= List(
|
|
|
|
"-unchecked",
|
|
|
|
"-deprecation",
|
|
|
|
"-Xlint",
|
|
|
|
"-Ywarn-dead-code",
|
|
|
|
"-language:_",
|
|
|
|
"-target:jvm-1.8",
|
|
|
|
"-encoding", "UTF-8"
|
|
|
|
),
|
|
|
|
javacOptions ++= List(
|
|
|
|
"-Xlint:unchecked",
|
|
|
|
"-Xlint:deprecation"
|
|
|
|
)
|
2015-05-12 06:25:11 +08:00
|
|
|
)
|
|
|
|
|
2018-11-08 21:53:00 +08:00
|
|
|
publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath + "/dev/repo/maven-repo/releases")))
|
2015-05-12 06:25:11 +08:00
|
|
|
|
|
|
|
// 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")
|
|
|
|
|
2018-12-11 02:18:32 +08:00
|
|
|
Seq(Revolver.settings: _*)
|
2018-11-08 21:53:00 +08:00
|
|
|
lazy val bbbAppsAkka = (project in file(".")).settings(name := "bbb-apps-akka", libraryDependencies ++= Dependencies.runtime).settings(compileSettings)
|
2017-05-09 03:43:19 +08:00
|
|
|
|
2019-03-28 04:41:16 +08:00
|
|
|
// See https://github.com/scala-ide/scalariform
|
|
|
|
// Config file is in ./.scalariform.conf
|
|
|
|
scalariformAutoformat := true
|
2017-07-15 05:50:34 +08:00
|
|
|
|
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
|
2018-11-08 21:53:00 +08:00
|
|
|
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
|
2018-11-08 21:53:00 +08:00
|
|
|
daemonGroup in Linux := group
|
|
|
|
|
2018-12-14 05:55:45 +08:00
|
|
|
javaOptions in Universal ++= Seq("-J-Xms130m", "-J-Xmx256m", "-Dconfig.file=conf/application.conf", "-Dlogback.configurationFile=conf/logback.xml")
|
2018-12-14 05:29:05 +08:00
|
|
|
|
2018-11-10 03:08:20 +08:00
|
|
|
debianPackageDependencies in Debian ++= Seq("java8-runtime-headless", "bash")
|