-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.sbt
81 lines (77 loc) · 2.84 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
lazy val versions = new {
val akka = "2.4.17"
val scalikejdbc = "3.3.2"
val telegramCore = "5.1.0"
val twitter4s = "5.1"
val akkaQuartzScheduler = "1.6.0-akka-2.4.x"
val flyway = "4.1.2"
val scalaLogging = "3.9.4"
val logback = "1.2.8"
val typesafeConfig = "1.3.1"
val postgresql = "9.4.1212"
val commonsDbcp2 = "2.1.1"
val jodaTime = "2.9.9"
val redisClient = "3.4"
val sentryLogback = "1.3.0"
val scalatest = "3.0.1"
val circle = "0.14.1"
}
lazy val commonSettings = Seq(
organization := "com.pepeground",
scalaVersion := "2.12.15",
version := "0.1",
resolvers ++= Seq(
Resolver.sonatypeRepo("snapshots"),
"Typesafe Repository" at "https://repo.typesafe.com/typesafe/releases/",
"Flyway" at "https://flywaydb.org/repo"
),
parallelExecution in Test := false,
test in assembly := {},
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % versions.logback,
"com.typesafe" % "config" % versions.typesafeConfig,
"org.scalikejdbc" %% "scalikejdbc" % versions.scalikejdbc,
"org.scalikejdbc" %% "scalikejdbc-joda-time" % versions.scalikejdbc,
"org.scalikejdbc" %% "scalikejdbc-config" % versions.scalikejdbc,
"org.postgresql" % "postgresql" % versions.postgresql,
"org.apache.commons" % "commons-dbcp2" % versions.commonsDbcp2,
"joda-time" % "joda-time" % versions.jodaTime,
"net.debasishg" %% "redisclient" % versions.redisClient,
"com.typesafe.akka" %% "akka-actor" % versions.akka,
"com.typesafe.scala-logging" %% "scala-logging" % versions.scalaLogging,
"org.flywaydb" % "flyway-core" % versions.flyway,
"io.sentry" % "sentry-logback" % versions.sentryLogback,
"io.circe" %% "circe-core" % versions.circle,
"io.circe" %% "circe-generic" % versions.circle,
"io.circe" %% "circe-parser" % versions.circle,
"org.scalatest" %% "scalatest" % versions.scalatest % "test",
"org.scalikejdbc" %% "scalikejdbc-test" % versions.scalikejdbc % "test"
),
)
lazy val core = (project in file("core")).
settings(
commonSettings,
name := "core",
)
lazy val bot = (project in file("bot")).
dependsOn(core).
settings(
commonSettings,
name := "bot",
mainClass in (Compile,run) := Some("com.pepeground.bot.Main"),
libraryDependencies ++= Seq(
"com.enragedginger" %% "akka-quartz-scheduler" % versions.akkaQuartzScheduler,
"com.danielasfregola" %% "twitter4s" % versions.twitter4s,
"com.bot4s" %% "telegram-core" % versions.telegramCore,
"io.micrometer" % "micrometer-registry-prometheus" % "1.4.1",
"biz.enef" %% "slogging" % "0.6.1"
),
assemblyMergeStrategy := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x =>
val oldStrategy = (assembly / assemblyMergeStrategy).value
oldStrategy(x)
},
)
lazy val root = (project in file("."))
.aggregate(bot, core)