2018-11-08 21:53:00 +08:00
|
|
|
package org.bigbluebutton.build
|
|
|
|
|
|
|
|
import sbt._
|
|
|
|
|
|
|
|
object Dependencies {
|
|
|
|
|
|
|
|
object Versions {
|
|
|
|
// Scala
|
2022-12-21 00:07:08 +08:00
|
|
|
val scala = "2.13.9"
|
2018-11-08 21:53:00 +08:00
|
|
|
val junit = "4.12"
|
|
|
|
val junitInterface = "0.11"
|
2022-02-25 12:39:48 +08:00
|
|
|
val scalactic = "3.0.8"
|
2018-11-08 21:53:00 +08:00
|
|
|
|
|
|
|
// Libraries
|
2023-09-01 02:03:00 +08:00
|
|
|
val pekkoVersion = "1.0.1"
|
|
|
|
val pekkoHttpVersion = "1.0.0"
|
2021-12-04 18:44:11 +08:00
|
|
|
val gson = "2.8.9"
|
2023-01-26 06:44:28 +08:00
|
|
|
val jackson = "2.13.5"
|
2024-03-16 00:07:07 +08:00
|
|
|
val logback = "1.2.13"
|
2021-12-04 18:44:11 +08:00
|
|
|
val quicklens = "1.7.5"
|
|
|
|
val spray = "1.3.6"
|
2018-11-08 21:53:00 +08:00
|
|
|
|
|
|
|
// Apache Commons
|
2021-12-04 18:44:11 +08:00
|
|
|
val lang = "3.12.0"
|
|
|
|
val codec = "1.15"
|
2018-11-08 21:53:00 +08:00
|
|
|
|
|
|
|
// BigBlueButton
|
2022-12-21 00:07:08 +08:00
|
|
|
val bbbCommons = "0.0.22-SNAPSHOT"
|
2018-11-08 21:53:00 +08:00
|
|
|
|
2023-03-08 23:23:45 +08:00
|
|
|
// Database
|
|
|
|
val slick = "3.4.1"
|
|
|
|
val postgresql = "42.5.0"
|
2023-03-25 00:33:08 +08:00
|
|
|
val slickPg = "0.21.1"
|
2023-03-08 23:23:45 +08:00
|
|
|
|
2018-11-08 21:53:00 +08:00
|
|
|
// Test
|
2022-03-11 04:51:05 +08:00
|
|
|
val scalaTest = "3.2.11"
|
2018-11-08 21:53:00 +08:00
|
|
|
val mockito = "2.23.0"
|
2022-02-25 12:39:48 +08:00
|
|
|
val akkaTestKit = "2.6.0"
|
2023-10-11 08:00:20 +08:00
|
|
|
val jacksonDataFormat = "2.13.5"
|
2018-11-08 21:53:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
object Compile {
|
|
|
|
val scalaLibrary = "org.scala-lang" % "scala-library" % Versions.scala
|
|
|
|
val scalaCompiler = "org.scala-lang" % "scala-compiler" % Versions.scala
|
|
|
|
|
2023-09-01 02:03:00 +08:00
|
|
|
val pekkoActor = "org.apache.pekko" %% "pekko-actor" % Versions.pekkoVersion
|
|
|
|
val pekkoSlf4j = "org.apache.pekko" %% "pekko-slf4j" % Versions.pekkoVersion
|
|
|
|
|
2018-11-08 21:53:00 +08:00
|
|
|
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
|
2022-02-25 12:39:48 +08:00
|
|
|
val sprayJson = "io.spray" % "spray-json_2.13" % Versions.spray
|
2018-11-08 21:53:00 +08:00
|
|
|
|
2023-09-01 02:03:00 +08:00
|
|
|
val pekkoStream = "org.apache.pekko" %% "pekko-stream" % Versions.pekkoVersion
|
|
|
|
val pekkoHttp = "org.apache.pekko" %% "pekko-http" % Versions.pekkoHttpVersion
|
|
|
|
val pekkoHttpSprayJson = "org.apache.pekko" %% "pekko-http-spray-json" % Versions.pekkoHttpVersion
|
|
|
|
|
2018-11-08 21:53:00 +08:00
|
|
|
val apacheLang = "org.apache.commons" % "commons-lang3" % Versions.lang
|
|
|
|
|
2022-02-25 12:39:48 +08:00
|
|
|
val bbbCommons = "org.bigbluebutton" % "bbb-common-message_2.13" % Versions.bbbCommons
|
2023-03-08 23:23:45 +08:00
|
|
|
|
|
|
|
val slick = "com.typesafe.slick" %% "slick" % Versions.slick
|
|
|
|
val slickHikaricp = "com.typesafe.slick" %% "slick-hikaricp" % Versions.slick
|
2023-03-25 00:33:08 +08:00
|
|
|
val slickPg = "com.github.tminglei" %% "slick-pg" % Versions.slickPg
|
2023-10-11 09:38:26 +08:00
|
|
|
val slickPgSprayJson = "com.github.tminglei" %% "slick-pg_spray-json" % Versions.slickPg
|
|
|
|
|
2023-03-08 23:23:45 +08:00
|
|
|
val postgresql = "org.postgresql" % "postgresql" % Versions.postgresql
|
2023-10-11 08:00:20 +08:00
|
|
|
val jacksonDataFormat = "com.fasterxml.jackson.dataformat" % "jackson-dataformat-yaml" % Versions.jacksonDataFormat
|
2018-11-08 21:53:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
object Test {
|
|
|
|
val scalaTest = "org.scalatest" %% "scalatest" % Versions.scalaTest % "test"
|
2021-12-04 18:44:11 +08:00
|
|
|
// val junit = "junit" % "junit" % Versions.junit % "test"
|
2018-11-08 21:53:00 +08:00
|
|
|
val mockitoCore = "org.mockito" % "mockito-core" % Versions.mockito % "test"
|
2022-02-25 12:39:48 +08:00
|
|
|
val scalactic = "org.scalactic" % "scalactic_2.13" % Versions.scalactic % "test"
|
2018-11-08 21:53:00 +08:00
|
|
|
val akkaTestKit = "com.typesafe.akka" %% "akka-testkit" % Versions.akkaTestKit % "test"
|
|
|
|
}
|
|
|
|
|
|
|
|
val testing = Seq(
|
|
|
|
Test.scalaTest,
|
2021-12-04 18:44:11 +08:00
|
|
|
// Test.junit,
|
2018-11-08 21:53:00 +08:00
|
|
|
Test.mockitoCore,
|
|
|
|
Test.scalactic,
|
|
|
|
Test.akkaTestKit)
|
|
|
|
|
|
|
|
val runtime = Seq(
|
|
|
|
Compile.scalaLibrary,
|
|
|
|
Compile.scalaCompiler,
|
2023-09-01 02:03:00 +08:00
|
|
|
Compile.pekkoActor,
|
|
|
|
Compile.pekkoSlf4j,
|
|
|
|
Compile.pekkoStream,
|
2018-11-08 21:53:00 +08:00
|
|
|
Compile.googleGson,
|
|
|
|
Compile.jacksonModule,
|
|
|
|
Compile.quicklens,
|
|
|
|
Compile.logback,
|
|
|
|
Compile.commonsCodec,
|
|
|
|
Compile.sprayJson,
|
|
|
|
Compile.apacheLang,
|
2023-09-01 02:03:00 +08:00
|
|
|
Compile.pekkoHttp,
|
|
|
|
Compile.pekkoHttpSprayJson,
|
2023-03-08 23:23:45 +08:00
|
|
|
Compile.bbbCommons,
|
|
|
|
Compile.slick,
|
|
|
|
Compile.slickHikaricp,
|
2023-03-25 00:33:08 +08:00
|
|
|
Compile.slickPg,
|
2023-10-11 09:38:26 +08:00
|
|
|
Compile.slickPgSprayJson,
|
2023-10-11 08:00:20 +08:00
|
|
|
Compile.postgresql,
|
|
|
|
Compile.jacksonDataFormat) ++ testing
|
2022-02-25 12:39:48 +08:00
|
|
|
}
|