-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
53 lines (45 loc) · 1.8 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
// -*- mode: scala -*-
resolvers ++= Resolver.sonatypeOssRepos("releases")
libraryDependencies ++= Seq(
"com.carrotsearch" % "jsuffixarrays" % "0.1.0",
"net.java.dev.jna" % "jna" % "5.6.0",
"org.apache.commons" % "commons-text" % "1.9",
"jakarta.servlet" % "jakarta.servlet-api" % "6.0.0" % Provided,
"org.scala-lang.modules" %% "scala-xml" % "2.0.1",
("org.scala-lang.modules" %% "scala-collection-contrib" % "0.2.2").cross(CrossVersion.for3Use2_13),
"org.json4s" %% "json4s-native" % "4.0.4",
"com.typesafe" % "config" % "1.3.4",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.4",
"ch.qos.logback" % "logback-classic" % "1.2.11",
"com.softwaremill.sttp.client3" %% "core" % "3.9.2" % "test",
"org.scalatest" %% "scalatest" % "3.2.10" % "test",
"org.scalatestplus" %% "mockito-3-4" % "3.2.10.0" % "test",
)
Compile / run / mainClass := Some("org.whym.growthring.Main")
publishMavenStyle := true
publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/.m2/repository")))
enablePlugins(SbtWar)
lazy val root = (project in file(".")).
enablePlugins(BuildInfoPlugin).
settings(
scalaVersion := "3.5.2",
organization := "org.whym",
name := "growthring",
version := "0.7-SNAPSHOT",
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
// "-opt:l:inline",
// "-opt-inline-from:**",
// "-opt:box-unbox",
// "-opt:redundant-casts",
// "-opt:simplify-jumps",
"-explaintypes",
"-feature"),
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion, BuildInfoKey.action("buildTime") {
java.time.Instant.now()
}),
buildInfoPackage := "org.whym.growthring",
buildInfoOptions += BuildInfoOption.ToMap,
warPort := 8080
)