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:_",
|
2023-06-13 05:15:33 +08:00
|
|
|
"-release:17",
|
2018-11-08 21:53:00 +08:00
|
|
|
"-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
|
|
|
|
|
2022-02-25 12:39:48 +08:00
|
|
|
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.8" % "test"
|
|
|
|
libraryDependencies += "org.scala-lang.modules" %% "scala-xml" % "2.0.0"
|
|
|
|
|
2015-05-12 06:25:11 +08:00
|
|
|
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
|
|
|
|
2022-12-21 00:07:08 +08:00
|
|
|
scalaVersion := "2.13.9"
|
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
|
|
|
|
|
2021-02-19 00:54:55 +08:00
|
|
|
javaOptions in Universal ++= Seq("-J-Xms130m", "-J-Xmx256m", "-Dconfig.file=/etc/bigbluebutton/bbb-apps-akka.conf", "-Dlogback.configurationFile=conf/logback.xml")
|
2024-03-08 02:09:05 +08:00
|
|
|
javaOptions in reStart ++= Seq("-Dconfig.file=/etc/bigbluebutton/bbb-apps-akka.conf", "-Dlogback.configurationFile=conf/logback.xml")
|
2018-12-14 05:29:05 +08:00
|
|
|
|
2023-06-14 02:26:12 +08:00
|
|
|
debianPackageDependencies in Debian ++= Seq("java17-runtime-headless", "bash")
|