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

80 lines
2.3 KiB
Plaintext
Raw Normal View History

import org.bigbluebutton.build._
2015-05-12 06:25:11 +08:00
import NativePackagerHelper._
import com.typesafe.sbt.SbtNativePackager.autoImport._
2015-05-12 06:25:11 +08:00
enablePlugins(JavaServerAppPackaging)
enablePlugins(UniversalPlugin)
enablePlugins(DebianPlugin)
2015-05-12 06:25:11 +08:00
version := "0.0.4"
val compileSettings = Seq(
organization := "org.bigbluebutton",
scalacOptions ++= List(
"-unchecked",
"-deprecation",
"-Xlint",
"-Ywarn-dead-code",
"-language:_",
2022-02-25 12:39:48 +08:00
"-target:jvm-1.11",
"-encoding", "UTF-8"
),
javacOptions ++= List(
"-Xlint:unchecked",
"-Xlint:deprecation"
)
2015-05-12 06:25:11 +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: _*)
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
2022-02-25 12:39:48 +08:00
scalaVersion := "2.13.4"
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
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
daemonGroup in Linux := group
javaOptions in Universal ++= Seq("-J-Xms130m", "-J-Xmx256m", "-Dconfig.file=/etc/bigbluebutton/bbb-apps-akka.conf", "-Dlogback.configurationFile=conf/logback.xml")
2022-02-11 17:58:55 +08:00
debianPackageDependencies in Debian ++= Seq("java11-runtime-headless", "bash")