This repository has been archived by the owner on Sep 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
93 lines (71 loc) · 2.42 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
82
83
84
85
86
87
88
89
90
91
92
93
name := "seanmcapp"
version := "latest"
scalaVersion := "2.13.1"
maintainer := "seanmcrayz@yahoo.com"
resolvers += Resolver.JCenterRepository
libraryDependencies ++= Seq(
// framework
"com.typesafe.akka" %% "akka-http" % "10.1.11",
"com.typesafe.akka" %% "akka-stream" % "2.6.3",
// testkit
"com.typesafe.akka" %% "akka-http-testkit" % "10.1.11" % Test,
"com.typesafe.akka" %% "akka-stream-testkit" % "2.6.3" % Test,
// parallel collection
"org.scala-lang.modules" %% "scala-parallel-collections" % "0.2.0",
// json serializer
"io.circe" %% "circe-core" % "0.13.0",
"io.circe" %% "circe-generic" % "0.13.0",
"io.circe" %% "circe-parser" % "0.13.0",
// http builder
"org.scalaj" %% "scalaj-http" % "2.4.2",
// ORM
"com.typesafe.slick" %% "slick" % "3.3.2",
"com.typesafe.slick" %% "slick-hikaricp" % "3.3.2",
"org.slf4j" % "slf4j-nop" % "1.7.30",
// postgresql
"org.postgresql" % "postgresql" % "42.2.5",
// scalatest
"org.scalatest" %% "scalatest" % "3.1.1" % "test,it",
// mockito
"org.mockito" % "mockito-core" % "3.3.0" % Test,
// joda time
"joda-time" % "joda-time" % "2.10.5",
"org.joda" % "joda-convert" % "2.2.1",
// caching
"com.github.cb372" %% "scalacache-guava" % "0.28.0",
// image storage
"io.minio" % "minio" % "6.0.13",
// discord bot
"net.katsstuff" %% "ackcord" % "0.17.1",
// cron
"com.github.alonsodomin.cron4s" %% "cron4s-core" % "0.6.1",
"com.github.alonsodomin.cron4s" %% "cron4s-joda" % "0.6.1",
// jsoup (Java HTML parser)
"org.jsoup" % "jsoup" % "1.13.1",
// session
"com.softwaremill.akka-http-session" %% "core" % "0.5.11",
// enum
"com.beachape" %% "enumeratum" % "1.7.0",
)
coverageExcludedPackages :=
".*com.seanmcapp.util.*;" +
".*com.seanmcapp.config.*;" +
".*Boot.*;" +
".*com.seanmcapp.*html.*;"
coverageMinimum := 90
coverageFailOnMinimum := true
fork in Test := true
fork in IntegrationTest := true
configs(IntegrationTest)
Defaults.itSettings
javaOptions in IntegrationTest += "-Dconfig.resource=application-local.conf"
mainClass in Compile := Some("com.seanmcapp.Boot")
/**
* DOCKER
* publish: sbt docker:publishLocal
* run: docker run --env-file=.env -p 9000:9000 seanmcapp
*/
mainClass in Compile := Some("com.seanmcapp.Boot")
dockerBaseImage := "openjdk:jre-alpine"
dockerRepository := Some("docker.pkg.github.com/bayusuryadana/seanmcapp")
enablePlugins(JavaAppPackaging, DockerPlugin, AshScriptPlugin, SbtTwirl)