-
Notifications
You must be signed in to change notification settings - Fork 0
/
built.sbt
84 lines (73 loc) · 3.05 KB
/
built.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name := "spy"
organization := "fr.janalyse"
description := "I'm not what you might think"
licenses += "NON-AI-APACHE2" -> url(s"https://github.com/non-ai-licenses/non-ai-licenses/blob/main/NON-AI-APACHE2")
scalaVersion := "3.5.1"
scalacOptions := Seq("-unchecked", "-deprecation", "-encoding", "utf8", "-feature")
lazy val versions = new {
// client side dependencies
val swaggerui = "5.17.14"
val bootstrap = "5.3.3"
val jquery = "3.7.1"
val awesome = "6.5.2"
// server side dependencies
val pureConfig = "0.17.7"
val pekko = "1.1.2"
val pekkoHttp = "1.1.0"
val pekkoHttpJson4s = "3.0.0"
val json4s = "4.0.7"
val logback = "1.5.10"
val slf4j = "2.0.16"
val scalatest = "3.2.19"
val commonsio = "2.17.0"
val webjarsLocator = "0.52"
}
// client side dependencies
libraryDependencies ++= Seq(
"org.webjars" % "swagger-ui" % versions.swaggerui,
"org.webjars" % "bootstrap" % versions.bootstrap,
"org.webjars" % "jquery" % versions.jquery,
"org.webjars" % "font-awesome" % versions.awesome
)
// server side dependencies
libraryDependencies ++= Seq(
"com.github.pureconfig" %% "pureconfig-core" % versions.pureConfig,
"org.json4s" %% "json4s-jackson" % versions.json4s,
"org.json4s" %% "json4s-ext" % versions.json4s,
"org.apache.pekko" %% "pekko-actor-typed" % versions.pekko,
"org.apache.pekko" %% "pekko-http" % versions.pekkoHttp,
"org.apache.pekko" %% "pekko-http-caching" % versions.pekkoHttp,
"org.apache.pekko" %% "pekko-stream" % versions.pekko,
"org.apache.pekko" %% "pekko-slf4j" % versions.pekko,
"org.apache.pekko" %% "pekko-testkit" % versions.pekko % Test,
"org.apache.pekko" %% "pekko-stream-testkit" % versions.pekko % Test,
"org.apache.pekko" %% "pekko-http-testkit" % versions.pekkoHttp % Test,
"com.github.pjfanning" %% "pekko-http-json4s" % versions.pekkoHttpJson4s,
"org.slf4j" % "slf4j-api" % versions.slf4j,
"ch.qos.logback" % "logback-classic" % versions.logback,
"commons-io" % "commons-io" % versions.commonsio,
"org.scalatest" %% "scalatest" % versions.scalatest % Test,
"org.webjars" % "webjars-locator" % versions.webjarsLocator
)
Compile / mainClass := Some("spy.Main")
packageBin / mainClass := Some("spy.Main")
Test / testOptions += {
val rel = scalaVersion.value.split("[.]").take(2).mkString(".")
Tests.Argument(
"-oDF", // -oW to remove colors
"-u",
s"target/junitresults/scala-$rel/"
)
}
enablePlugins(JavaServerAppPackaging)
enablePlugins(SbtTwirl)
homepage := Some(url("https://github.com/dacr/spy"))
scmInfo := Some(ScmInfo(url(s"https://github.com/dacr/spy.git"), s"[email protected]:dacr/spy.git"))
developers := List(
Developer(
id = "dacr",
name = "David Crosson",
email = "[email protected]",
url = url("https://github.com/dacr")
)
)