81 lines
2.2 KiB
Plaintext
81 lines
2.2 KiB
Plaintext
|
import org.bigbluebutton.build._
|
||
|
|
||
|
import NativePackagerHelper._
|
||
|
import com.typesafe.sbt.SbtNativePackager.autoImport._
|
||
|
|
||
|
enablePlugins(JavaServerAppPackaging)
|
||
|
enablePlugins(UniversalPlugin)
|
||
|
enablePlugins(DebianPlugin)
|
||
|
|
||
|
version := "0.0.2"
|
||
|
|
||
|
val compileSettings = Seq(
|
||
|
organization := "org.bigbluebutton",
|
||
|
|
||
|
scalacOptions ++= List(
|
||
|
"-unchecked",
|
||
|
"-deprecation",
|
||
|
"-Xlint",
|
||
|
"-Ywarn-dead-code",
|
||
|
"-language:_",
|
||
|
"-target:11",
|
||
|
"-encoding", "UTF-8"
|
||
|
),
|
||
|
javacOptions ++= List(
|
||
|
"-Xlint:unchecked",
|
||
|
"-Xlint:deprecation"
|
||
|
)
|
||
|
)
|
||
|
|
||
|
scalaVersion := "2.13.9"
|
||
|
|
||
|
resolvers += Resolver.sonatypeRepo("releases")
|
||
|
|
||
|
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")
|
||
|
|
||
|
Seq(Revolver.settings: _*)
|
||
|
lazy val bbbFseslAkka = (project in file(".")).settings(name := "bbb-fsesl-akka", libraryDependencies ++= Dependencies.runtime).settings(compileSettings)
|
||
|
|
||
|
// See https://github.com/scala-ide/scalariform
|
||
|
// Config file is in ./.scalariform.conf
|
||
|
scalariformAutoformat := true
|
||
|
|
||
|
|
||
|
//-----------
|
||
|
// 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>"
|
||
|
|
||
|
packageSummary in Linux := "BigBlueButton FS-ESL (Akka)"
|
||
|
|
||
|
packageDescription := """BigBlueButton FreeSWITCH ESL 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
|
||
|
|
||
|
javaOptions in Universal ++= Seq("-J-Xms130m", "-J-Xmx256m", "-Dconfig.file=/etc/bigbluebutton/bbb-fsesl-akka.conf", "-Dlogback.configurationFile=conf/logback.xml")
|
||
|
|
||
|
debianPackageDependencies in Debian ++= Seq("java11-runtime-headless", "bash", "bbb-freeswitch-core")
|