-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
56 lines (45 loc) · 1.97 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
name := "DeCSMeSHFinder"
version := "1.0"
scalaVersion := "2.13.15" //"2.13.13" //"2.13.11"
val jakartaServletApiVersion = "6.1.0" //"6.0.0"
val jakartaWsRsVersion= "4.0.0" //"3.1.0"
val luceneVersion = "9.12.0" //"9.8.0"
val tikaVersion = /*"2.5.0"*/ "3.0.0-BETA2"
val sttpVersion = "4.0.0-M19" //"4.0.0-M17"
val scalaTestVersion = "3.3.0-SNAP4" //"3.2.0-M2"
libraryDependencies ++= Seq(
"jakarta.servlet" % "jakarta.servlet-api" % jakartaServletApiVersion % "provided",
"jakarta.ws.rs" % "jakarta.ws.rs-api" % jakartaWsRsVersion,
"org.apache.lucene" % "lucene-core" % luceneVersion,
"org.apache.lucene" % "lucene-queryparser" % luceneVersion,
"org.apache.lucene" % "lucene-backward-codecs" % luceneVersion,
//"org.apache.tika" % "tika-core" % tikaVersion,
//"org.apache.tika" % "tika-langdetect" % tikaVersion pomOnly(),
"com.softwaremill.sttp.client4" %% "core" % sttpVersion,
"com.softwaremill.sttp.client4" %% "circe" % sttpVersion,
"io.circe" %% "circe-generic" % "0.14.10",
"org.scalactic" %% "scalactic" % scalaTestVersion,
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",
)
Test / logBuffered := false
trapExit := false
resolvers += "Artima Maven Repository" at "https://repo.artima.com/releases"
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-Ywarn-unused")
//enablePlugins(JettyPlugin)
//enablePlugins(WarPlugin)
enablePlugins(SbtWar)
assembly / assemblyMergeStrategy := {
case "module-info.class" => MergeStrategy.discard
case x =>
val oldStrategy = (assembly / assemblyMergeStrategy).value
oldStrategy(x)
}
/*
// Configura o nome do arquivo .jar de maneira explícita
artifactName in (Compile, packageBin) := { (sv: ScalaVersion, module: ModuleID, artifact: Artifact) =>
"meu-jar-nome-" + version.value + ".jar"
}
// Configura o nome do arquivo .war de maneira explícita
artifactName in (Compile, packageWar) := { (sv: ScalaVersion, module: ModuleID, artifact: Artifact) =>
"meu-war-nome-" + version.value + ".war"
}*/