bigbluebutton-Github/akka-bbb-fsesl/build.sbt

81 lines
2.2 KiB
Plaintext
Raw Normal View History

import org.bigbluebutton.build._
2015-05-16 03:17:12 +08:00
2018-12-14 22:15:19 +08:00
import NativePackagerHelper._
import com.typesafe.sbt.SbtNativePackager.autoImport._
2015-05-16 03:17:12 +08:00
enablePlugins(JavaServerAppPackaging)
2018-12-14 22:15:19 +08:00
enablePlugins(UniversalPlugin)
enablePlugins(DebianPlugin)
2015-05-16 03:17:12 +08:00
version := "0.0.2"
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-16 03:17:12 +08:00
)
2022-03-11 04:51:05 +08:00
scalaVersion := "2.13.4"
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")
Seq(Revolver.settings: _*)
lazy val bbbFseslAkka = (project in file(".")).settings(name := "bbb-fsesl-akka", libraryDependencies ++= Dependencies.runtime).settings(compileSettings)
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
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
daemonGroup in Linux := group
2015-06-09 22:30:42 +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")