2018-11-10 03:08:20 +08:00
|
|
|
import org.bigbluebutton.build._
|
2015-05-16 03:17:12 +08:00
|
|
|
|
2018-12-14 22:15:19 +08:00
|
|
|
import NativePackagerHelper._
|
2018-11-10 03:08:20 +08:00
|
|
|
import com.typesafe.sbt.SbtNativePackager.autoImport._
|
2015-05-16 03:17:12 +08:00
|
|
|
|
2018-11-10 03:08:20 +08:00
|
|
|
enablePlugins(JavaServerAppPackaging)
|
2018-12-14 22:15:19 +08:00
|
|
|
enablePlugins(UniversalPlugin)
|
|
|
|
enablePlugins(DebianPlugin)
|
2015-05-16 03:17:12 +08:00
|
|
|
|
2018-11-10 03:08:20 +08:00
|
|
|
version := "0.0.2"
|
|
|
|
|
|
|
|
val compileSettings = Seq(
|
|
|
|
organization := "org.bigbluebutton",
|
|
|
|
|
|
|
|
scalacOptions ++= List(
|
|
|
|
"-unchecked",
|
|
|
|
"-deprecation",
|
|
|
|
"-Xlint",
|
|
|
|
"-Ywarn-dead-code",
|
|
|
|
"-language:_",
|
2023-06-13 05:27:13 +08:00
|
|
|
"-release:17",
|
2018-11-10 03:08:20 +08:00
|
|
|
"-encoding", "UTF-8"
|
|
|
|
),
|
|
|
|
javacOptions ++= List(
|
|
|
|
"-Xlint:unchecked",
|
|
|
|
"-Xlint:deprecation"
|
|
|
|
)
|
2015-05-16 03:17:12 +08:00
|
|
|
)
|
|
|
|
|
2022-12-21 00:07:08 +08:00
|
|
|
scalaVersion := "2.13.9"
|
2022-03-11 04:51:05 +08:00
|
|
|
|
2016-05-21 04:27:52 +08:00
|
|
|
resolvers += Resolver.sonatypeRepo("releases")
|
|
|
|
|
2015-05-16 03:17:12 +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")
|
|
|
|
|
2018-11-10 03:08:20 +08:00
|
|
|
Seq(Revolver.settings: _*)
|
|
|
|
lazy val bbbFseslAkka = (project in file(".")).settings(name := "bbb-fsesl-akka", libraryDependencies ++= Dependencies.runtime).settings(compileSettings)
|
2018-08-06 05:36:56 +08:00
|
|
|
|
2019-03-28 04:33:22 +08:00
|
|
|
// See https://github.com/scala-ide/scalariform
|
|
|
|
// Config file is in ./.scalariform.conf
|
|
|
|
scalariformAutoformat := true
|
2015-06-09 22:30:42 +08:00
|
|
|
|
2022-03-11 04:51:05 +08:00
|
|
|
|
2015-06-09 22:30:42 +08:00
|
|
|
//-----------
|
|
|
|
// 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.Boot")
|
|
|
|
|
|
|
|
maintainer in Linux := "Richard Alam <ritzalam@gmail.com>"
|
2015-06-11 04:45:29 +08:00
|
|
|
|
2015-06-09 22:30:42 +08:00
|
|
|
packageSummary in Linux := "BigBlueButton FS-ESL (Akka)"
|
2015-06-11 04:45:29 +08:00
|
|
|
|
2015-06-09 22:30:42 +08:00
|
|
|
packageDescription := """BigBlueButton FreeSWITCH ESL in Akka."""
|
|
|
|
|
|
|
|
val user = "bigbluebutton"
|
2015-06-11 04:45:29 +08:00
|
|
|
|
2015-06-09 22:30:42 +08:00
|
|
|
val group = "bigbluebutton"
|
|
|
|
|
|
|
|
// user which will execute the application
|
2018-12-11 23:57:09 +08:00
|
|
|
daemonUser in Linux := user
|
2015-06-11 04:45:29 +08:00
|
|
|
|
2015-06-09 22:30:42 +08:00
|
|
|
// group which will execute the application
|
2018-12-11 23:57:09 +08:00
|
|
|
daemonGroup in Linux := group
|
2015-06-09 22:30:42 +08:00
|
|
|
|
2021-02-21 00:58:03 +08:00
|
|
|
javaOptions in Universal ++= Seq("-J-Xms130m", "-J-Xmx256m", "-Dconfig.file=/etc/bigbluebutton/bbb-fsesl-akka.conf", "-Dlogback.configurationFile=conf/logback.xml")
|
2018-12-14 22:15:19 +08:00
|
|
|
|
2022-02-11 17:58:55 +08:00
|
|
|
debianPackageDependencies in Debian ++= Seq("java11-runtime-headless", "bash", "bbb-freeswitch-core")
|