2019-07-22 22:53:30 +00:00
|
|
|
package docspell.build
|
|
|
|
|
2019-07-17 20:03:10 +00:00
|
|
|
import sbt._
|
2021-02-21 11:04:48 +00:00
|
|
|
import org.portablescala.sbtplatformdeps.PlatformDepsPlugin.autoImport._
|
2019-07-17 20:03:10 +00:00
|
|
|
|
|
|
|
object Dependencies {
|
|
|
|
|
2021-09-22 15:23:24 +00:00
|
|
|
val BcryptVersion = "0.4"
|
2019-07-22 22:53:30 +00:00
|
|
|
val BetterMonadicForVersion = "0.3.1"
|
2021-11-08 20:44:32 +00:00
|
|
|
val BinnyVersion = "0.2.1"
|
2021-09-22 15:23:24 +00:00
|
|
|
val CalevVersion = "0.6.0"
|
2021-11-20 05:17:44 +00:00
|
|
|
val CatsParseVersion = "0.3.6"
|
2021-09-22 15:23:24 +00:00
|
|
|
val CirceVersion = "0.14.1"
|
|
|
|
val ClipboardJsVersion = "2.0.6"
|
|
|
|
val DoobieVersion = "1.0.0-RC1"
|
|
|
|
val EmilVersion = "0.10.0-M3"
|
|
|
|
val FlexmarkVersion = "0.62.2"
|
2021-11-17 17:16:59 +00:00
|
|
|
val FlywayVersion = "8.0.5"
|
2021-10-27 22:20:16 +00:00
|
|
|
val Fs2Version = "3.2.2"
|
2021-09-22 15:23:24 +00:00
|
|
|
val Fs2CronVersion = "0.7.1"
|
|
|
|
val H2Version = "1.4.200"
|
2021-10-24 16:24:03 +00:00
|
|
|
val Http4sVersion = "0.23.6"
|
2021-10-28 10:11:59 +00:00
|
|
|
val Icu4jVersion = "70.1"
|
2021-11-08 20:44:32 +00:00
|
|
|
val JavaOtpVersion = "0.3.0"
|
2021-09-30 10:19:11 +00:00
|
|
|
val JsoupVersion = "1.14.3"
|
2021-10-04 12:15:53 +00:00
|
|
|
val JwtScalaVersion = "9.0.2"
|
2021-09-22 15:23:24 +00:00
|
|
|
val KindProjectorVersion = "0.10.3"
|
|
|
|
val KittensVersion = "2.3.2"
|
|
|
|
val LevigoJbig2Version = "2.0"
|
|
|
|
val Log4sVersion = "1.10.0"
|
2021-11-11 19:28:59 +00:00
|
|
|
val LogbackVersion = "1.2.7"
|
2021-09-22 15:23:24 +00:00
|
|
|
val MariaDbVersion = "2.7.4"
|
|
|
|
val MUnitVersion = "0.7.29"
|
2021-09-30 14:21:56 +00:00
|
|
|
val MUnitCatsEffectVersion = "1.0.6"
|
2021-11-05 05:21:13 +00:00
|
|
|
val OrganizeImportsVersion = "0.6.0"
|
2021-09-22 15:23:24 +00:00
|
|
|
val PdfboxVersion = "2.0.24"
|
|
|
|
val PoiVersion = "4.1.2"
|
2021-10-30 04:42:00 +00:00
|
|
|
val PostgresVersion = "42.3.1"
|
2021-10-02 22:52:45 +00:00
|
|
|
val PureConfigVersion = "0.17.0"
|
2021-09-22 15:23:24 +00:00
|
|
|
val ScalaJavaTimeVersion = "2.3.0"
|
2021-09-28 16:19:29 +00:00
|
|
|
val ScodecBitsVersion = "1.1.29"
|
2021-09-22 15:23:24 +00:00
|
|
|
val Slf4jVersion = "1.7.32"
|
|
|
|
val StanfordNlpVersion = "4.2.2"
|
|
|
|
val TikaVersion = "2.1.0"
|
|
|
|
val YamuscaVersion = "0.8.1"
|
2021-11-09 23:29:03 +00:00
|
|
|
val SwaggerUIVersion = "4.1.0"
|
2021-11-14 21:17:16 +00:00
|
|
|
val TestContainerVersion = "0.39.12"
|
2021-09-22 15:23:24 +00:00
|
|
|
val TwelveMonkeysVersion = "3.7.0"
|
|
|
|
val JQueryVersion = "3.5.1"
|
|
|
|
val ViewerJSVersion = "0.5.9"
|
2020-02-11 21:46:23 +00:00
|
|
|
|
2021-09-05 14:29:42 +00:00
|
|
|
val jwtScala = Seq(
|
|
|
|
"com.github.jwt-scala" %% "jwt-circe" % JwtScalaVersion
|
|
|
|
)
|
|
|
|
|
2021-08-29 19:27:56 +00:00
|
|
|
val scodecBits = Seq(
|
|
|
|
"org.scodec" %% "scodec-bits" % ScodecBitsVersion
|
|
|
|
)
|
|
|
|
|
|
|
|
val javaOtp = Seq(
|
2021-11-08 20:44:32 +00:00
|
|
|
"com.eatthepath" % "java-otp" % JavaOtpVersion
|
2021-08-29 19:27:56 +00:00
|
|
|
)
|
|
|
|
|
2021-08-23 19:47:54 +00:00
|
|
|
val testContainer = Seq(
|
2021-09-22 15:23:24 +00:00
|
|
|
"com.dimafeng" %% "testcontainers-scala-munit" % TestContainerVersion,
|
|
|
|
"com.dimafeng" %% "testcontainers-scala-mariadb" % TestContainerVersion,
|
2021-08-23 19:47:54 +00:00
|
|
|
"com.dimafeng" %% "testcontainers-scala-postgresql" % TestContainerVersion
|
|
|
|
)
|
|
|
|
|
2021-02-21 11:04:48 +00:00
|
|
|
val catsParse = Seq(
|
|
|
|
"org.typelevel" %% "cats-parse" % CatsParseVersion
|
|
|
|
)
|
|
|
|
val catsParseJS =
|
|
|
|
Def.setting("org.typelevel" %%% "cats-parse" % CatsParseVersion)
|
|
|
|
|
|
|
|
val scalaJsStubs =
|
2021-08-09 20:36:16 +00:00
|
|
|
"org.scala-js" %% "scalajs-stubs" % "1.1.0" % "provided"
|
2021-02-21 11:04:48 +00:00
|
|
|
|
2021-02-23 00:24:24 +00:00
|
|
|
val catsJS = Def.setting("org.typelevel" %%% "cats-core" % "2.4.2")
|
|
|
|
|
2021-02-28 15:11:25 +00:00
|
|
|
val scalaJavaTime =
|
|
|
|
Def.setting("io.github.cquiroz" %%% "scala-java-time" % ScalaJavaTimeVersion)
|
|
|
|
|
2020-12-05 01:59:57 +00:00
|
|
|
val kittens = Seq(
|
|
|
|
"org.typelevel" %% "kittens" % KittensVersion
|
|
|
|
)
|
|
|
|
|
2020-03-08 14:26:56 +00:00
|
|
|
val calevCore = Seq(
|
2020-04-17 22:50:46 +00:00
|
|
|
"com.github.eikek" %% "calev-core" % CalevVersion
|
2020-03-08 14:26:56 +00:00
|
|
|
)
|
|
|
|
val calevFs2 = Seq(
|
2021-06-21 19:33:54 +00:00
|
|
|
"eu.timepit" %% "fs2-cron-calev" % Fs2CronVersion
|
2020-03-08 01:48:47 +00:00
|
|
|
)
|
2020-04-17 22:50:46 +00:00
|
|
|
val calevCirce = Seq(
|
|
|
|
"com.github.eikek" %% "calev-circe" % CalevVersion
|
|
|
|
)
|
2020-03-08 01:48:47 +00:00
|
|
|
|
2020-02-16 20:37:26 +00:00
|
|
|
val jclOverSlf4j = Seq(
|
|
|
|
"org.slf4j" % "jcl-over-slf4j" % Slf4jVersion
|
|
|
|
)
|
|
|
|
val julOverSlf4j = Seq(
|
|
|
|
"org.slf4j" % "jul-to-slf4j" % Slf4jVersion
|
|
|
|
)
|
|
|
|
|
2020-02-11 21:46:23 +00:00
|
|
|
val poi = Seq(
|
2021-09-22 15:23:24 +00:00
|
|
|
"org.apache.poi" % "poi" % PoiVersion,
|
|
|
|
"org.apache.poi" % "poi-ooxml" % PoiVersion,
|
2020-06-22 22:28:04 +00:00
|
|
|
"org.apache.poi" % "poi-scratchpad" % PoiVersion
|
|
|
|
).map(
|
|
|
|
_.excludeAll(
|
|
|
|
ExclusionRule("commons-logging")
|
|
|
|
)
|
|
|
|
) ++ jclOverSlf4j
|
2020-02-11 21:46:23 +00:00
|
|
|
|
2020-02-10 23:33:52 +00:00
|
|
|
// https://github.com/vsch/flexmark-java
|
|
|
|
// BSD 2-Clause
|
|
|
|
val flexmark = Seq(
|
2021-09-22 15:23:24 +00:00
|
|
|
"com.vladsch.flexmark" % "flexmark" % FlexmarkVersion,
|
|
|
|
"com.vladsch.flexmark" % "flexmark-ext-tables" % FlexmarkVersion,
|
2020-02-10 23:33:52 +00:00
|
|
|
"com.vladsch.flexmark" % "flexmark-ext-gfm-strikethrough" % FlexmarkVersion
|
2020-06-22 22:28:04 +00:00
|
|
|
).map(
|
|
|
|
_.excludeAll(
|
|
|
|
ExclusionRule("junit"),
|
|
|
|
ExclusionRule("hamcrest-core")
|
|
|
|
)
|
|
|
|
)
|
2020-02-10 23:33:52 +00:00
|
|
|
|
2020-02-18 20:32:21 +00:00
|
|
|
val twelvemonkeys = Seq(
|
|
|
|
"com.twelvemonkeys.imageio" % "imageio-jpeg" % TwelveMonkeysVersion,
|
|
|
|
"com.twelvemonkeys.imageio" % "imageio-tiff" % TwelveMonkeysVersion
|
|
|
|
)
|
2020-02-15 15:40:50 +00:00
|
|
|
|
2020-11-10 21:28:34 +00:00
|
|
|
val levigoJbig2 = Seq(
|
|
|
|
"com.levigo.jbig2" % "levigo-jbig2-imageio" % LevigoJbig2Version
|
|
|
|
)
|
|
|
|
|
2020-02-10 23:33:52 +00:00
|
|
|
val pdfbox = Seq(
|
2020-06-22 22:28:04 +00:00
|
|
|
("org.apache.pdfbox" % "pdfbox" % PdfboxVersion).excludeAll(
|
2020-02-16 20:37:26 +00:00
|
|
|
ExclusionRule("org.bouncycastle"),
|
|
|
|
ExclusionRule("commons-logging")
|
|
|
|
)
|
2020-11-10 21:28:34 +00:00
|
|
|
) ++ jclOverSlf4j ++ levigoJbig2
|
2019-07-17 20:03:10 +00:00
|
|
|
|
2020-04-19 18:31:28 +00:00
|
|
|
val emilCommon = Seq(
|
2020-06-22 22:28:04 +00:00
|
|
|
"com.github.eikek" %% "emil-common" % EmilVersion
|
2020-04-19 18:31:28 +00:00
|
|
|
)
|
2020-01-04 23:12:23 +00:00
|
|
|
val emil = Seq(
|
2021-09-22 15:23:24 +00:00
|
|
|
"com.github.eikek" %% "emil-common" % EmilVersion,
|
2020-06-22 22:28:04 +00:00
|
|
|
"com.github.eikek" %% "emil-javamail" % EmilVersion
|
2020-01-04 23:12:23 +00:00
|
|
|
)
|
2020-03-24 22:03:18 +00:00
|
|
|
val emilDoobie = Seq(
|
2020-06-22 22:28:04 +00:00
|
|
|
"com.github.eikek" %% "emil-doobie" % EmilVersion
|
2020-03-24 22:03:18 +00:00
|
|
|
)
|
|
|
|
val emilTnef = Seq(
|
2021-01-24 22:24:33 +00:00
|
|
|
("com.github.eikek" %% "emil-tnef" % EmilVersion).excludeAll(
|
2021-01-24 19:06:53 +00:00
|
|
|
ExclusionRule("org.apache.poi")
|
|
|
|
)
|
2020-03-24 22:03:18 +00:00
|
|
|
)
|
2020-04-07 20:05:24 +00:00
|
|
|
val emilMarkdown = Seq(
|
2020-06-22 22:28:04 +00:00
|
|
|
"com.github.eikek" %% "emil-markdown" % EmilVersion
|
2020-04-07 20:05:24 +00:00
|
|
|
)
|
|
|
|
val emilJsoup = Seq(
|
2020-06-22 22:28:04 +00:00
|
|
|
"com.github.eikek" %% "emil-jsoup" % EmilVersion
|
2020-04-07 20:05:24 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
val jsoup = Seq(
|
|
|
|
"org.jsoup" % "jsoup" % JsoupVersion
|
|
|
|
)
|
2020-01-04 23:12:23 +00:00
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
val stanfordNlpCore = Seq(
|
2020-06-22 22:28:04 +00:00
|
|
|
("edu.stanford.nlp" % "stanford-corenlp" % StanfordNlpVersion).excludeAll(
|
2019-07-22 22:53:30 +00:00
|
|
|
ExclusionRule("com.io7m.xom", "xom"),
|
|
|
|
ExclusionRule("javax.servlet", "javax.servlet-api"),
|
|
|
|
ExclusionRule("org.apache.lucene", "lucene-queryparser"),
|
|
|
|
ExclusionRule("org.apache.lucene", "lucene-queries"),
|
|
|
|
ExclusionRule("org.apache.lucene", "lucene-analyzers-common"),
|
|
|
|
ExclusionRule("org.apache.lucene", "lucene-core"),
|
|
|
|
ExclusionRule("com.sun.xml.bind", "jaxb-impl"),
|
|
|
|
ExclusionRule("com.sun.xml.bind", "jaxb-core"),
|
|
|
|
ExclusionRule("javax.xml.bind", "jaxb-api"),
|
2020-04-07 20:17:02 +00:00
|
|
|
ExclusionRule("javax.activation"),
|
2019-07-22 22:53:30 +00:00
|
|
|
ExclusionRule("de.jollyday", "jollyday"),
|
|
|
|
ExclusionRule("com.apple", "AppleJavaExtensions"),
|
|
|
|
ExclusionRule("org.glassfish", "javax.json")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
val stanfordNlpModels = Seq(
|
2020-04-21 21:33:15 +00:00
|
|
|
("edu.stanford.nlp" % "stanford-corenlp" % StanfordNlpVersion)
|
|
|
|
.classifier("models"),
|
2020-06-22 22:28:04 +00:00
|
|
|
("edu.stanford.nlp" % "stanford-corenlp" % StanfordNlpVersion)
|
|
|
|
.classifier("models-german"),
|
2020-04-21 21:33:15 +00:00
|
|
|
("edu.stanford.nlp" % "stanford-corenlp" % StanfordNlpVersion)
|
|
|
|
.classifier("models-french"),
|
|
|
|
("edu.stanford.nlp" % "stanford-corenlp" % StanfordNlpVersion)
|
|
|
|
.classifier(
|
|
|
|
"models-english"
|
|
|
|
)
|
2019-07-22 22:53:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
val tika = Seq(
|
|
|
|
"org.apache.tika" % "tika-core" % TikaVersion
|
|
|
|
)
|
2020-02-16 20:37:26 +00:00
|
|
|
val commonsIO = Seq(
|
2021-07-13 14:22:23 +00:00
|
|
|
"commons-io" % "commons-io" % "2.11.0"
|
2020-02-16 20:37:26 +00:00
|
|
|
)
|
|
|
|
val tikaParser = Seq(
|
|
|
|
"org.apache.tika" % "tika-parsers" % TikaVersion
|
|
|
|
)
|
2019-07-22 22:53:30 +00:00
|
|
|
|
|
|
|
val bcrypt = Seq(
|
|
|
|
"org.mindrot" % "jbcrypt" % BcryptVersion
|
|
|
|
)
|
2019-07-17 20:03:10 +00:00
|
|
|
|
|
|
|
val fs2 = Seq(
|
2019-07-22 22:53:30 +00:00
|
|
|
"co.fs2" %% "fs2-core" % Fs2Version,
|
2021-09-22 15:23:24 +00:00
|
|
|
"co.fs2" %% "fs2-io" % Fs2Version
|
2019-07-17 20:03:10 +00:00
|
|
|
)
|
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
val http4sClient = Seq(
|
|
|
|
"org.http4s" %% "http4s-blaze-client" % Http4sVersion
|
|
|
|
)
|
2019-07-17 20:03:10 +00:00
|
|
|
|
2020-06-18 22:43:35 +00:00
|
|
|
val http4sCirce = Seq(
|
|
|
|
"org.http4s" %% "http4s-circe" % Http4sVersion
|
|
|
|
)
|
|
|
|
|
|
|
|
val http4sDsl = Seq(
|
|
|
|
"org.http4s" %% "http4s-dsl" % Http4sVersion
|
|
|
|
)
|
|
|
|
|
|
|
|
val http4sServer = Seq(
|
|
|
|
"org.http4s" %% "http4s-blaze-server" % Http4sVersion
|
|
|
|
)
|
|
|
|
|
2019-07-17 20:03:10 +00:00
|
|
|
val circe = Seq(
|
|
|
|
"io.circe" %% "circe-generic" % CirceVersion,
|
2021-09-22 15:23:24 +00:00
|
|
|
"io.circe" %% "circe-parser" % CirceVersion
|
2019-07-17 20:03:10 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// https://github.com/Log4s/log4s;ASL 2.0
|
|
|
|
val loggingApi = Seq(
|
|
|
|
"org.log4s" %% "log4s" % Log4sVersion
|
|
|
|
)
|
|
|
|
|
|
|
|
val logging = Seq(
|
2019-07-22 22:53:30 +00:00
|
|
|
"ch.qos.logback" % "logback-classic" % LogbackVersion
|
2019-07-17 20:03:10 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// https://github.com/melrief/pureconfig
|
|
|
|
// MPL 2.0
|
|
|
|
val pureconfig = Seq(
|
|
|
|
"com.github.pureconfig" %% "pureconfig" % PureConfigVersion
|
|
|
|
)
|
|
|
|
|
|
|
|
// https://github.com/h2database/h2database
|
|
|
|
// MPL 2.0 or EPL 1.0
|
|
|
|
val h2 = Seq(
|
|
|
|
"com.h2database" % "h2" % H2Version
|
|
|
|
)
|
|
|
|
val mariadb = Seq(
|
2021-09-12 17:28:23 +00:00
|
|
|
"org.mariadb.jdbc" % "mariadb-java-client" % MariaDbVersion
|
2019-07-17 20:03:10 +00:00
|
|
|
)
|
|
|
|
val postgres = Seq(
|
|
|
|
"org.postgresql" % "postgresql" % PostgresVersion
|
|
|
|
)
|
2020-05-05 18:39:11 +00:00
|
|
|
val databases = h2 ++ mariadb ++ postgres
|
2019-07-17 20:03:10 +00:00
|
|
|
|
|
|
|
// https://github.com/tpolecat/doobie
|
|
|
|
// MIT
|
|
|
|
val doobie = Seq(
|
2021-09-22 15:23:24 +00:00
|
|
|
"org.tpolecat" %% "doobie-core" % DoobieVersion,
|
2019-07-17 20:03:10 +00:00
|
|
|
"org.tpolecat" %% "doobie-hikari" % DoobieVersion
|
|
|
|
)
|
|
|
|
|
2021-09-21 22:28:47 +00:00
|
|
|
val binny = Seq(
|
2021-09-22 15:23:24 +00:00
|
|
|
"com.github.eikek" %% "binny-core" % BinnyVersion,
|
2021-09-23 07:27:04 +00:00
|
|
|
"com.github.eikek" %% "binny-jdbc" % BinnyVersion
|
2019-07-17 20:03:10 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// https://github.com/flyway/flyway
|
|
|
|
// ASL 2.0
|
|
|
|
val flyway = Seq(
|
|
|
|
"org.flywaydb" % "flyway-core" % FlywayVersion
|
|
|
|
)
|
|
|
|
|
|
|
|
val yamusca = Seq(
|
|
|
|
"com.github.eikek" %% "yamusca-core" % YamuscaVersion
|
|
|
|
)
|
|
|
|
|
2021-02-28 20:15:21 +00:00
|
|
|
val munit = Seq(
|
2021-09-22 15:23:24 +00:00
|
|
|
"org.scalameta" %% "munit" % MUnitVersion,
|
|
|
|
"org.scalameta" %% "munit-scalacheck" % MUnitVersion,
|
2021-06-26 21:33:25 +00:00
|
|
|
"org.typelevel" %% "munit-cats-effect-3" % MUnitCatsEffectVersion
|
2021-02-28 20:15:21 +00:00
|
|
|
)
|
|
|
|
|
2021-08-19 06:50:30 +00:00
|
|
|
val kindProjectorPlugin = "org.typelevel" %% "kind-projector" % KindProjectorVersion
|
|
|
|
val betterMonadicFor = "com.olegpy" %% "better-monadic-for" % BetterMonadicForVersion
|
2019-07-17 20:03:10 +00:00
|
|
|
|
|
|
|
val webjars = Seq(
|
2021-09-22 15:23:24 +00:00
|
|
|
"org.webjars" % "swagger-ui" % SwaggerUIVersion,
|
|
|
|
"org.webjars" % "viewerjs" % ViewerJSVersion,
|
2021-04-10 14:31:58 +00:00
|
|
|
"org.webjars" % "clipboard.js" % ClipboardJsVersion
|
2020-02-08 16:51:47 +00:00
|
|
|
)
|
2019-07-17 20:03:10 +00:00
|
|
|
|
2020-03-23 21:43:15 +00:00
|
|
|
val icu4j = Seq(
|
|
|
|
"com.ibm.icu" % "icu4j" % Icu4jVersion
|
|
|
|
)
|
2020-06-28 18:47:19 +00:00
|
|
|
|
|
|
|
val organizeImports = Seq(
|
|
|
|
"com.github.liancheng" %% "organize-imports" % OrganizeImportsVersion
|
|
|
|
)
|
2019-07-17 20:03:10 +00:00
|
|
|
}
|