89 lines
2.8 KiB
Scala
Executable File
89 lines
2.8 KiB
Scala
Executable File
package org.bigbluebutton.build
|
|
|
|
import sbt._
|
|
import Keys._
|
|
|
|
object Dependencies {
|
|
|
|
object Versions {
|
|
// Scala
|
|
val scala = "2.12.8"
|
|
val junitInterface = "0.11"
|
|
val scalactic = "3.0.3"
|
|
|
|
// Libraries
|
|
val akkaVersion = "2.5.19"
|
|
val akkaHttpVersion = "10.1.4"
|
|
val logback = "1.2.3"
|
|
|
|
// Apache Commons
|
|
val lang = "3.8.1"
|
|
val codec = "1.11"
|
|
|
|
// BigBlueButton
|
|
val bbbCommons = "0.0.20-SNAPSHOT"
|
|
val bbbFsesl = "0.0.7-SNAPSHOT"
|
|
|
|
// Test
|
|
val scalaTest = "3.0.5"
|
|
val akkaTestKit = "2.5.18"
|
|
val junit = "4.12"
|
|
}
|
|
|
|
object Compile {
|
|
val scalaLibrary = "org.scala-lang" % "scala-library" % Versions.scala
|
|
val scalaCompiler = "org.scala-lang" % "scala-compiler" % Versions.scala
|
|
|
|
val akkaActor = "com.typesafe.akka" % "akka-actor_2.12" % Versions.akkaVersion
|
|
val akkaSl4fj = "com.typesafe.akka" % "akka-slf4j_2.12" % Versions.akkaVersion
|
|
val akkaStream = "com.typesafe.akka" %% "akka-stream" % Versions.akkaVersion
|
|
|
|
val akkaHttp = "com.typesafe.akka" %% "akka-http" % Versions.akkaHttpVersion
|
|
// https://mvnrepository.com/artifact/com.typesafe.akka/akka-http-spray-json
|
|
val akkaHttpSprayJson = "com.typesafe.akka" %% "akka-http-spray-json" % Versions.akkaHttpVersion
|
|
|
|
// val akkaHttpSprayJson = "com.typesafe.akka" % "akka-http-spray-json" % Versions.akkaHttpVersion
|
|
|
|
val logback = "ch.qos.logback" % "logback-classic" % Versions.logback
|
|
val commonsCodec = "commons-codec" % "commons-codec" % Versions.codec
|
|
|
|
val apacheLang = "org.apache.commons" % "commons-lang3" % Versions.lang
|
|
|
|
val bbbCommons = "org.bigbluebutton" % "bbb-common-message_2.12" % Versions.bbbCommons excludeAll (
|
|
ExclusionRule(organization = "org.red5"))
|
|
val bbbFseslClient = "org.bigbluebutton" % "bbb-fsesl-client" % Versions.bbbFsesl
|
|
}
|
|
|
|
object Test {
|
|
val scalaTest = "org.scalatest" %% "scalatest" % Versions.scalaTest % "test"
|
|
val junit = "junit" % "junit" % Versions.junit % "test"
|
|
val scalactic = "org.scalactic" % "scalactic_2.12" % Versions.scalactic % "test"
|
|
val akkaTestKit = "com.typesafe.akka" %% "akka-testkit" % Versions.akkaTestKit % "test"
|
|
|
|
// https://mvnrepository.com/artifact/com.typesafe.akka/akka-http-testkit
|
|
val akkaHttpTestkit = "com.typesafe.akka" %% "akka-http-testkit" % "10.1.4" % "test"
|
|
|
|
}
|
|
|
|
val testing = Seq(
|
|
Test.scalaTest,
|
|
Test.junit,
|
|
Test.scalactic,
|
|
Test.akkaTestKit,
|
|
Test.akkaHttpTestkit)
|
|
|
|
val runtime = Seq(
|
|
Compile.scalaLibrary,
|
|
Compile.scalaCompiler,
|
|
Compile.akkaActor,
|
|
Compile.akkaSl4fj,
|
|
Compile.akkaStream,
|
|
Compile.logback,
|
|
Compile.commonsCodec,
|
|
Compile.apacheLang,
|
|
Compile.bbbCommons,
|
|
Compile.bbbFseslClient,
|
|
Compile.akkaHttp,
|
|
Compile.akkaHttpSprayJson) ++ testing
|
|
}
|