2018-11-08 21:53:00 +08:00
|
|
|
package org.bigbluebutton.build
|
|
|
|
|
|
|
|
import sbt._
|
|
|
|
import Keys._
|
|
|
|
|
|
|
|
object Dependencies {
|
|
|
|
|
|
|
|
object Versions {
|
|
|
|
// Scala
|
2018-12-17 03:18:37 +08:00
|
|
|
val scala = "2.12.8"
|
2018-11-08 21:53:00 +08:00
|
|
|
val junit = "4.12"
|
|
|
|
val junitInterface = "0.11"
|
|
|
|
val scalactic = "3.0.3"
|
|
|
|
|
|
|
|
// Libraries
|
2018-12-17 03:18:37 +08:00
|
|
|
val akkaVersion = "2.5.19"
|
2018-11-08 21:53:00 +08:00
|
|
|
val gson = "2.8.5"
|
|
|
|
val jackson = "2.9.7"
|
|
|
|
val logback = "1.2.3"
|
|
|
|
val quicklens = "1.4.11"
|
|
|
|
val spray = "1.3.4"
|
|
|
|
|
|
|
|
// Apache Commons
|
2020-02-28 17:44:28 +08:00
|
|
|
val lang = "3.9"
|
|
|
|
val codec = "1.14"
|
2018-11-08 21:53:00 +08:00
|
|
|
|
|
|
|
// BigBlueButton
|
|
|
|
val bbbCommons = "0.0.20-SNAPSHOT"
|
|
|
|
|
|
|
|
// Test
|
|
|
|
val scalaTest = "3.0.5"
|
|
|
|
val mockito = "2.23.0"
|
|
|
|
val akkaTestKit = "2.5.18"
|
|
|
|
}
|
|
|
|
|
|
|
|
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 googleGson = "com.google.code.gson" % "gson" % Versions.gson
|
|
|
|
val jacksonModule = "com.fasterxml.jackson.module" %% "jackson-module-scala" % Versions.jackson
|
|
|
|
val quicklens = "com.softwaremill.quicklens" %% "quicklens" % Versions.quicklens
|
2018-12-11 22:36:42 +08:00
|
|
|
val logback = "ch.qos.logback" % "logback-classic" % Versions.logback
|
2018-11-08 21:53:00 +08:00
|
|
|
val commonsCodec = "commons-codec" % "commons-codec" % Versions.codec
|
|
|
|
val sprayJson = "io.spray" % "spray-json_2.12" % Versions.spray
|
|
|
|
|
|
|
|
val apacheLang = "org.apache.commons" % "commons-lang3" % Versions.lang
|
|
|
|
|
2018-12-11 03:32:08 +08:00
|
|
|
val bbbCommons = "org.bigbluebutton" % "bbb-common-message_2.12" % Versions.bbbCommons excludeAll (
|
|
|
|
ExclusionRule(organization = "org.red5"))
|
2018-11-08 21:53:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
object Test {
|
|
|
|
val scalaTest = "org.scalatest" %% "scalatest" % Versions.scalaTest % "test"
|
|
|
|
val junit = "junit" % "junit" % Versions.junit % "test"
|
|
|
|
val mockitoCore = "org.mockito" % "mockito-core" % Versions.mockito % "test"
|
|
|
|
val scalactic = "org.scalactic" % "scalactic_2.12" % Versions.scalactic % "test"
|
|
|
|
val akkaTestKit = "com.typesafe.akka" %% "akka-testkit" % Versions.akkaTestKit % "test"
|
|
|
|
}
|
|
|
|
|
|
|
|
val testing = Seq(
|
|
|
|
Test.scalaTest,
|
|
|
|
Test.junit,
|
|
|
|
Test.mockitoCore,
|
|
|
|
Test.scalactic,
|
|
|
|
Test.akkaTestKit)
|
|
|
|
|
|
|
|
val runtime = Seq(
|
|
|
|
Compile.scalaLibrary,
|
|
|
|
Compile.scalaCompiler,
|
|
|
|
Compile.akkaActor,
|
2018-11-15 03:18:12 +08:00
|
|
|
Compile.akkaSl4fj,
|
2018-11-08 21:53:00 +08:00
|
|
|
Compile.googleGson,
|
|
|
|
Compile.jacksonModule,
|
|
|
|
Compile.quicklens,
|
|
|
|
Compile.logback,
|
|
|
|
Compile.commonsCodec,
|
|
|
|
Compile.sprayJson,
|
|
|
|
Compile.apacheLang,
|
|
|
|
Compile.bbbCommons) ++ testing
|
|
|
|
}
|