-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
62 lines (53 loc) · 2.28 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
lazy val commonSettings = Seq(
organization := "org.bireme",
version := "1.0.0",
scalaVersion := "2.13.14" //"2.13.13" // org.scala-lang.modules:scala-xml _2.13, _2.12
)
lazy val root = (project in file(".")).
settings(commonSettings: _*).
settings(
name := "BVS-InfoButton"
)
val akkaVersion = "10.5.3" //"10.5.2"
val playJsonVersion = "2.10.5" //"2.10.4"
val scalaXmlVersion = "2.3.0" //"2.1.0"
val dom4jVersion = "2.1.4" //"2.1.3"
val scalaLoggingVersion = "3.9.5" //"3.9.2"
val logbackVersion = "1.5.6" //"1.4.7"
val scalaTestVersion = "3.2.18" //"3.2.16"
val luceneVersion = "9.10.0" //"9.6.0"
val scalajHttpVersion = "2.4.2" //"2.4.1"
val jakartaServletApiVersion = "6.0.0"
val log4jVersion = "2.23.1" //"2.19.0"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % akkaVersion,
"com.typesafe.play" %% "play-json" % playJsonVersion,
"org.scala-lang.modules" %% "scala-xml" % scalaXmlVersion,
"org.dom4j" % "dom4j" % dom4jVersion,
"com.typesafe.scala-logging" %% "scala-logging" % scalaLoggingVersion,
"ch.qos.logback" % "logback-classic" % logbackVersion,
"ch.qos.logback" % "logback-core" % logbackVersion,
"org.scalactic" %% "scalactic" % scalaTestVersion,
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",
"org.apache.lucene" % "lucene-core" % luceneVersion,
"org.apache.lucene" % "lucene-analysis-common" % luceneVersion,
//"org.apache.lucene" % "lucene-analyzers-common" % luceneVersion,
"org.apache.lucene" % "lucene-queryparser" % luceneVersion,
"org.apache.lucene" % "lucene-queries" % luceneVersion,
"org.apache.lucene" % "lucene-backward-codecs" % luceneVersion,
"org.scalaj" %% "scalaj-http" % scalajHttpVersion,
"jakarta.servlet" % "jakarta.servlet-api" % jakartaServletApiVersion % "provided",
"org.apache.logging.log4j" % "log4j-api" % log4jVersion,
)
Test / logBuffered := false
trapExit := false // To allow System.exit() without an exception (TestIndex.scala)
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-Ywarn-unused")
enablePlugins(JettyPlugin)
//enablePlugins(TomcatPlugin)
assembly / assemblyMergeStrategy := {
case "module-info.class" => MergeStrategy.first //MergeStrategy.discard
case x =>
val oldStrategy = (assembly / assemblyMergeStrategy).value
oldStrategy(x)
}
assembly / test := {}