bigbluebutton-Github/labs/vertx-akka/build.sbt

76 lines
2.1 KiB
Plaintext
Raw Normal View History

import org.bigbluebutton.build._
2018-03-28 09:09:35 +08:00
import NativePackagerHelper._
import com.typesafe.sbt.SbtNativePackager.autoImport._
2018-03-28 09:09:35 +08:00
enablePlugins(JavaServerAppPackaging)
enablePlugins(UniversalPlugin)
enablePlugins(DebianPlugin)
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"
)
2018-03-28 09:09:35 +08:00
)
publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath + "/dev/repo/maven-repo/releases")))
2018-03-28 09:09:35 +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
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 bbbVertxAkka = (project in file(".")).settings(name := "bbb-vertx-akka", libraryDependencies ++= Dependencies.runtime).settings(compileSettings)
2018-03-28 09:09:35 +08:00
// See https://github.com/scala-ide/scalariform
// Config file is in ./.scalariform.conf
scalariformAutoformat := true
2018-03-28 09:09:35 +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>"
packageSummary in Linux := "BigBlueButton Vertx Akka"
2018-03-28 09:09:35 +08:00
packageDescription := """BigBlueButton Core Vertx Akka."""
2018-03-28 09:09:35 +08:00
val user = "bigbluebutton"
val group = "bigbluebutton"
// user which will execute the application
daemonUser in Linux := user
2018-03-28 09:09:35 +08:00
// group which will execute the application
daemonGroup in Linux := group
2018-03-28 09:09:35 +08:00
javaOptions in Universal ++= Seq("-J-Xms130m", "-J-Xmx256m", "-Dconfig.file=conf/application.conf", "-Dlogback.configurationFile=conf/logback.xml")
2018-03-28 09:09:35 +08:00
debianPackageDependencies in Debian ++= Seq("java8-runtime-headless", "bash")