-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.sbt
More file actions
98 lines (71 loc) · 3.8 KB
/
build.sbt
File metadata and controls
98 lines (71 loc) · 3.8 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import NativePackagerHelper._
name := "aviatorsbot-scala"
version := "1.0"
scalaVersion := "2.12.6"
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers += Resolver.sonatypeRepo("public")
excludeDependencies += "ch.qos.logback" % "logback-classic"
// Akka
libraryDependencies += "com.typesafe.akka" %% "akka-actor" % "2.6.13"
libraryDependencies += "com.typesafe.akka" %% "akka-stream" % "2.6.13"
libraryDependencies += "com.typesafe.akka" %% "akka-http" % "10.2.4"
libraryDependencies += "com.typesafe.akka" %% "akka-http-testkit" % "10.2.4"
// Scalatest
libraryDependencies += "org.scalactic" %% "scalactic" % "3.0.5"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.5" % "test"
// Telegram Bot/
// Core with minimal dependencies, enough to spawn your first bot.
libraryDependencies += "com.bot4s" %% "telegram-core" % "5.0.0"
// Extra goodies: Webhooks, support for games, bindings for actors.
libraryDependencies += "com.bot4s" %% "telegram-akka" % "5.0.0"
// HTTP Client
libraryDependencies += "com.softwaremill.sttp" %% "core" % "1.3.5"
libraryDependencies += "com.softwaremill.sttp" %% "akka-http-backend" % "1.3.5"
libraryDependencies += "com.softwaremill.sttp" %% "json4s" % "1.3.5"
// XML
libraryDependencies += "org.scala-lang.modules" %% "scala-xml" % "1.1.1"
// Scheduler
libraryDependencies += "org.quartz-scheduler" % "quartz" % "2.3.0"
// Logging
libraryDependencies += "org.apache.logging.log4j" % "log4j-api" % "2.15.0"
libraryDependencies += "org.apache.logging.log4j" % "log4j-core" % "2.15.0"
libraryDependencies += "org.apache.logging.log4j" % "log4j-slf4j-impl" % "2.15.0"
// Wire Scala CDI
libraryDependencies += "com.softwaremill.macwire" %% "macros" % "2.3.0" % "provided"
libraryDependencies += "com.softwaremill.macwire" %% "macrosakka" % "2.3.0" % "provided"
libraryDependencies += "com.softwaremill.macwire" %% "util" % "2.3.0"
libraryDependencies += "com.softwaremill.macwire" %% "proxy" % "2.3.0"
// Scala Mock
libraryDependencies += "org.scalamock" %% "scalamock" % "4.1.0" % Test
// Mongodb
libraryDependencies += "org.reactivemongo" % "reactivemongo_2.12" % "0.16.0"// https://mvnrepository.com/artifact/org.scala-lang/scala-xml
// Caching
libraryDependencies += "com.github.cb372" %% "scalacache-caffeine" % "0.9.3"
// Metrics
libraryDependencies += "nl.grons" %% "metrics4-scala" % "4.0.1"
libraryDependencies += "nl.grons" %% "metrics4-akka_a24" % "4.0.1"
libraryDependencies += "nl.grons" %% "metrics4-scala-hdr" % "4.0.1"
libraryDependencies += "io.dropwizard.metrics" % "metrics-log4j2" % "4.0.1"
libraryDependencies += "io.dropwizard.metrics" % "metrics-graphite" % "4.0.1"
// Units of Measure
libraryDependencies += "org.typelevel" %% "squants" % "1.3.0"
// Enums
libraryDependencies += "com.beachape" %% "enumeratum" % "1.5.13"
libraryDependencies += "com.beachape" %% "enumeratum-reactivemongo-bson" % "1.5.13"
enablePlugins(JavaServerAppPackaging)
enablePlugins(DebianPlugin)
enablePlugins(SystemdPlugin)
Compile / unmanagedSourceDirectories += baseDirectory.value / "scalaxb-generated/main/scala"
lazy val scalaXml = "org.scala-lang.modules" %% "scala-xml" % "1.0.6"
lazy val scalaParser = "org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.6"
lazy val dispatchV = "0.12.0"
lazy val dispatch = "net.databinder.dispatch" %% "dispatch-core" % dispatchV
Compile / mainClass := Some("com.vektorraum.aviatorsbot.bot.AviatorsBotProduction")
Linux / maintainer := "Fabian Valka <contact@vektorraum.com>"
Linux / packageSummary := "AviatorsBot"
packageDescription := "A telegram bot for aviators. Focused on providing up to date weather information."
Debian / serverLoading := Some(ServerLoader.Systemd)
startRunlevels :=Option("3")
stopRunlevels :=Option("3")
Universal / mappings ++= directory("conf")
coverageExcludedPackages := "com\\.vektorraum\\.aviatorsbot\\.generated.*;scalaxb.*"