docspell/project/Dependencies.scala

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

346 lines
9.6 KiB
Scala
Raw Normal View History

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"
val BetterMonadicForVersion = "0.3.1"
val BinnyVersion = "0.11.0"
val CalevVersion = "0.7.3"
2023-11-15 19:32:37 +00:00
val CatsVersion = "2.10.0"
2024-03-06 06:13:31 +00:00
val CatsEffectVersion = "3.5.4"
2023-11-15 19:32:37 +00:00
val CatsParseVersion = "1.0.0"
2023-11-05 19:30:03 +00:00
val CirceVersion = "0.15.0-M1"
2022-10-25 06:50:59 +00:00
val CirceGenericExtrasVersion = "0.14.3"
2023-11-05 19:30:03 +00:00
val CirceYamlVersion = "0.15.1"
2023-01-10 06:20:36 +00:00
val ClipboardJsVersion = "2.0.11"
2024-01-29 08:25:53 +00:00
val DoobieVersion = "1.0.0-RC5"
val EmilVersion = "0.17.0"
2023-05-24 06:13:22 +00:00
val FlexmarkVersion = "0.64.8"
2024-05-24 21:15:55 +00:00
val FlywayVersion = "10.13.0"
2024-03-29 06:24:59 +00:00
val Fs2Version = "3.10.2"
2023-09-19 06:26:06 +00:00
val H2Version = "2.2.224"
val Http4sVersion = "0.23.27"
2024-04-17 06:28:07 +00:00
val Icu4jVersion = "75.1"
2022-08-01 06:28:46 +00:00
val JavaOtpVersion = "0.4.0"
2023-12-29 06:11:52 +00:00
val JsoupVersion = "1.17.2"
2024-05-07 06:27:31 +00:00
val JwtScalaVersion = "10.0.1"
2021-09-22 15:23:24 +00:00
val KindProjectorVersion = "0.10.3"
2024-03-09 06:12:48 +00:00
val KittensVersion = "3.3.0"
2021-09-22 15:23:24 +00:00
val LevigoJbig2Version = "2.0"
val Log4sVersion = "1.10.0"
2021-12-23 15:56:33 +00:00
val LogbackVersion = "1.2.10"
2024-05-24 21:15:58 +00:00
val MariaDbVersion = "3.4.0"
val MUnitVersion = "1.0.0"
val MUnitCatsEffectVersion = "2.0.0"
2024-03-15 06:25:22 +00:00
val PdfboxVersion = "3.0.2"
val PdfjsViewerVersion = "2.12.313"
2021-09-22 15:23:24 +00:00
val PoiVersion = "4.1.2"
2024-03-15 06:25:32 +00:00
val PostgresVersion = "42.7.3"
val PureConfigVersion = "0.17.7"
2024-06-08 06:11:39 +00:00
val ScalaJavaTimeVersion = "2.6.0"
2024-05-24 21:16:05 +00:00
val ScodecBitsVersion = "1.2.0"
2024-06-05 06:13:23 +00:00
val ScribeVersion = "3.15.0"
2024-04-13 06:20:43 +00:00
val Slf4jVersion = "2.0.13"
2024-05-24 21:15:51 +00:00
val SourcecodeVersion = "0.4.2"
2024-04-20 06:24:14 +00:00
val StanfordNlpVersion = "4.5.7"
2024-04-03 06:24:52 +00:00
val TikaVersion = "2.9.2"
val YamuscaVersion = "0.10.0"
2024-05-31 06:13:09 +00:00
val SwaggerUIVersion = "5.17.14"
val TestContainerVersion = "0.41.4"
val TwelveMonkeysVersion = "3.11.0"
2021-09-22 15:23:24 +00:00
val JQueryVersion = "3.5.1"
val scribe = Seq(
"com.outr" %% "scribe" % ScribeVersion,
"com.outr" %% "scribe-slf4j2" % ScribeVersion
)
2022-02-19 13:00:47 +00:00
val sourcecode = Seq(
"com.lihaoyi" %% "sourcecode" % SourcecodeVersion
)
val jwtScala = Seq(
"com.github.jwt-scala" %% "jwt-circe" % JwtScalaVersion
)
val scodecBits = Seq(
"org.scodec" %% "scodec-bits" % ScodecBitsVersion
)
val javaOtp = Seq(
"com.eatthepath" % "java-otp" % JavaOtpVersion
)
val testContainer = Seq(
2021-09-22 15:23:24 +00:00
"com.dimafeng" %% "testcontainers-scala-munit" % TestContainerVersion,
"com.dimafeng" %% "testcontainers-scala-mariadb" % TestContainerVersion,
"com.dimafeng" %% "testcontainers-scala-postgresql" % TestContainerVersion
)
val cats = Seq(
"org.typelevel" %% "cats-core" % CatsVersion
)
val catsEffect = Seq(
"org.typelevel" %% "cats-effect" % CatsEffectVersion
)
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")
val scalaJavaTime =
Def.setting("io.github.cquiroz" %%% "scala-java-time" % ScalaJavaTimeVersion)
val kittens = Seq(
"org.typelevel" %% "kittens" % KittensVersion
)
val calevCore = Seq(
2020-04-17 22:50:46 +00:00
"com.github.eikek" %% "calev-core" % CalevVersion
)
val calevFs2 = Seq(
2022-03-13 18:24:00 +00:00
"com.github.eikek" %% "calev-fs2" % CalevVersion
)
2020-04-17 22:50:46 +00:00
val calevCirce = Seq(
"com.github.eikek" %% "calev-circe" % CalevVersion
)
2020-02-16 20:37:26 +00:00
val jclOverSlf4j = Seq(
"org.slf4j" % "jcl-over-slf4j" % Slf4jVersion
)
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
// 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,
"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-18 20:32:21 +00:00
val twelvemonkeys = Seq(
"com.twelvemonkeys.imageio" % "imageio-jpeg" % TwelveMonkeysVersion,
"com.twelvemonkeys.imageio" % "imageio-tiff" % TwelveMonkeysVersion
)
val levigoJbig2 = Seq(
"com.levigo.jbig2" % "levigo-jbig2-imageio" % LevigoJbig2Version
)
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")
)
) ++ jclOverSlf4j ++ levigoJbig2
2019-07-17 20:03:10 +00:00
val emilCommon = Seq(
2020-06-22 22:28:04 +00:00
"com.github.eikek" %% "emil-common" % EmilVersion
)
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
)
val emilDoobie = Seq(
2020-06-22 22:28:04 +00:00
"com.github.eikek" %% "emil-doobie" % EmilVersion
)
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")
)
)
val emilMarkdown = Seq(
2020-06-22 22:28:04 +00:00
"com.github.eikek" %% "emil-markdown" % EmilVersion
)
val emilJsoup = Seq(
2020-06-22 22:28:04 +00:00
"com.github.eikek" %% "emil-jsoup" % EmilVersion
)
val jsoup = Seq(
"org.jsoup" % "jsoup" % JsoupVersion
)
2020-01-04 23:12:23 +00:00
val stanfordNlpCore = Seq(
2020-06-22 22:28:04 +00:00
("edu.stanford.nlp" % "stanford-corenlp" % StanfordNlpVersion).excludeAll(
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"),
ExclusionRule("javax.activation"),
ExclusionRule("junit", "junit"),
ExclusionRule("de.jollyday", "jollyday"),
ExclusionRule("com.apple", "AppleJavaExtensions"),
ExclusionRule("org.glassfish", "javax.json")
)
)
val stanfordNlpModels = {
val artifact = "edu.stanford.nlp" % "stanford-corenlp" % StanfordNlpVersion
Seq(
artifact.classifier("models"),
artifact.classifier("models-german"),
artifact.classifier("models-french"),
artifact.classifier("models-english"),
artifact.classifier("models-spanish")
)
}
val tika = Seq(
"org.apache.tika" % "tika-core" % TikaVersion
)
2020-02-16 20:37:26 +00:00
val commonsIO = Seq(
2024-04-09 06:25:47 +00:00
"commons-io" % "commons-io" % "2.16.1"
2020-02-16 20:37:26 +00:00
)
val tikaParser = Seq(
"org.apache.tika" % "tika-parsers" % TikaVersion
)
val bcrypt = Seq(
"org.mindrot" % "jbcrypt" % BcryptVersion
)
2019-07-17 20:03:10 +00:00
2022-02-19 13:00:47 +00:00
val fs2Core = Seq(
"co.fs2" %% "fs2-core" % Fs2Version
)
val fs2Io = Seq(
2021-09-22 15:23:24 +00:00
"co.fs2" %% "fs2-io" % Fs2Version
2019-07-17 20:03:10 +00:00
)
2022-02-19 13:00:47 +00:00
val fs2 = fs2Core ++ fs2Io
2019-07-17 20:03:10 +00:00
val http4sClient = Seq(
"org.http4s" %% "http4s-ember-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-ember-server" % Http4sVersion
2020-06-18 22:43:35 +00:00
)
val circeCore = Seq(
"io.circe" %% "circe-core" % CirceVersion
)
val circeParser = Seq(
2021-09-22 15:23:24 +00:00
"io.circe" %% "circe-parser" % CirceVersion
2019-07-17 20:03:10 +00:00
)
val circe =
circeCore ++ circeParser ++ Seq(
"io.circe" %% "circe-generic" % CirceVersion
)
2022-05-21 12:49:43 +00:00
val circeGenericExtra = circeCore ++ Seq(
"io.circe" %% "circe-generic-extras" % CirceGenericExtrasVersion
)
2022-05-21 12:49:43 +00:00
val circeYaml = circeCore ++ Seq(
"io.circe" %% "circe-yaml" % CirceYamlVersion
)
2019-07-17 20:03:10 +00:00
// https://github.com/melrief/pureconfig
// MPL 2.0
val pureconfig = Seq(
"com.github.pureconfig" %% "pureconfig" % PureConfigVersion
)
val pureconfigIp4s = Seq(
"com.github.pureconfig" %% "pureconfig-ip4s" % PureConfigVersion
)
2019-07-17 20:03:10 +00:00
// 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
)
val binny = Seq(
2021-09-22 15:23:24 +00:00
"com.github.eikek" %% "binny-core" % BinnyVersion,
"com.github.eikek" %% "binny-jdbc" % BinnyVersion,
2022-03-07 11:06:29 +00:00
"com.github.eikek" %% "binny-minio" % BinnyVersion,
"com.github.eikek" %% "binny-fs" % BinnyVersion
2019-07-17 20:03:10 +00:00
)
// https://github.com/flyway/flyway
// ASL 2.0
val flyway = Seq(
2021-12-11 21:00:30 +00:00
"org.flywaydb" % "flyway-core" % FlywayVersion,
"org.flywaydb" % "flyway-database-postgresql" % FlywayVersion,
2021-12-11 21:00:30 +00:00
"org.flywaydb" % "flyway-mysql" % FlywayVersion
2019-07-17 20:03:10 +00:00
)
val yamusca = Seq(
"com.github.eikek" %% "yamusca-core" % YamuscaVersion,
"com.github.eikek" %% "yamusca-derive" % YamuscaVersion
2019-07-17 20:03:10 +00:00
)
val yamuscaCirce = Seq(
"com.github.eikek" %% "yamusca-circe" % YamuscaVersion
)
2019-07-17 20:03:10 +00:00
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,
"org.typelevel" %% "munit-cats-effect" % 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" % "clipboard.js" % ClipboardJsVersion,
"org.webjars.npm" % "pdfjs-dist-viewer-min" % PdfjsViewerVersion
)
2019-07-17 20:03:10 +00:00
val icu4j = Seq(
"com.ibm.icu" % "icu4j" % Icu4jVersion
)
2020-06-28 18:47:19 +00:00
2019-07-17 20:03:10 +00:00
}