2018-11-10 03:08:20 +08:00
|
|
|
package org.bigbluebutton.build
|
|
|
|
|
|
|
|
import sbt._
|
|
|
|
import Keys._
|
|
|
|
|
|
|
|
object Dependencies {
|
|
|
|
|
|
|
|
object Versions {
|
|
|
|
// Scala
|
2021-11-30 00:40:52 +08:00
|
|
|
val scala = "2.12.15"
|
2018-11-10 03:08:20 +08:00
|
|
|
val junitInterface = "0.11"
|
|
|
|
val scalactic = "3.0.3"
|
|
|
|
|
|
|
|
// Libraries
|
2021-12-05 01:56:09 +08:00
|
|
|
val akkaVersion = "2.6.17"
|
|
|
|
val akkaHttpVersion = "10.2.7"
|
2022-02-11 17:58:55 +08:00
|
|
|
val logback = "1.2.10"
|
2018-11-10 03:08:20 +08:00
|
|
|
|
|
|
|
// Apache Commons
|
2021-12-05 01:56:09 +08:00
|
|
|
val lang = "3.12.0"
|
|
|
|
val codec = "1.15"
|
2018-11-10 03:08:20 +08:00
|
|
|
|
|
|
|
// BigBlueButton
|
|
|
|
val bbbCommons = "0.0.20-SNAPSHOT"
|
2018-12-06 03:21:06 +08:00
|
|
|
val bbbFsesl = "0.0.7-SNAPSHOT"
|
2018-11-10 03:08:20 +08:00
|
|
|
|
|
|
|
// 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
|
2020-02-08 05:23:29 +08:00
|
|
|
val akkaStream = "com.typesafe.akka" %% "akka-stream" % Versions.akkaVersion
|
|
|
|
|
|
|
|
val akkaHttp = "com.typesafe.akka" %% "akka-http" % Versions.akkaHttpVersion
|
|
|
|
val akkaHttpSprayJson = "com.typesafe.akka" %% "akka-http-spray-json" % Versions.akkaHttpVersion
|
|
|
|
|
2018-11-21 20:53:40 +08:00
|
|
|
val logback = "ch.qos.logback" % "logback-classic" % Versions.logback
|
2018-11-10 03:08:20 +08:00
|
|
|
val commonsCodec = "commons-codec" % "commons-codec" % Versions.codec
|
|
|
|
|
|
|
|
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-10 03:08:20 +08:00
|
|
|
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"
|
2020-02-08 05:23:29 +08:00
|
|
|
|
|
|
|
// https://mvnrepository.com/artifact/com.typesafe.akka/akka-http-testkit
|
|
|
|
val akkaHttpTestkit = "com.typesafe.akka" %% "akka-http-testkit" % "10.1.4" % "test"
|
|
|
|
|
2018-11-10 03:08:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
val testing = Seq(
|
|
|
|
Test.scalaTest,
|
|
|
|
Test.junit,
|
|
|
|
Test.scalactic,
|
2020-02-08 05:23:29 +08:00
|
|
|
Test.akkaTestKit,
|
|
|
|
Test.akkaHttpTestkit)
|
2018-11-10 03:08:20 +08:00
|
|
|
|
|
|
|
val runtime = Seq(
|
|
|
|
Compile.scalaLibrary,
|
|
|
|
Compile.scalaCompiler,
|
|
|
|
Compile.akkaActor,
|
2018-11-15 03:18:12 +08:00
|
|
|
Compile.akkaSl4fj,
|
2020-02-08 05:23:29 +08:00
|
|
|
Compile.akkaStream,
|
2018-11-10 03:08:20 +08:00
|
|
|
Compile.logback,
|
|
|
|
Compile.commonsCodec,
|
|
|
|
Compile.apacheLang,
|
|
|
|
Compile.bbbCommons,
|
2020-02-08 05:23:29 +08:00
|
|
|
Compile.bbbFseslClient,
|
|
|
|
Compile.akkaHttp,
|
|
|
|
Compile.akkaHttpSprayJson) ++ testing
|
2018-11-10 03:08:20 +08:00
|
|
|
}
|