-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathbuild.sbt
68 lines (50 loc) · 2.88 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
name := "event-stream-api"
version := scala.util.Properties.envOrElse("APP_VERSION", "latest")
scalaVersion := "2.13.1"
sbtVersion := "1.3.9"
scalacOptions ++= Seq(
"-Xfatal-warnings",
"-Ywarn-unused",
"-Xlint",
"-feature",
"-deprecation",
"-unchecked",
"-feature",
"-language:higherKinds"
// "-Xlog-implicits"
)
val unfilteredLibraryVersion = "0.10.0-M7"
val circeVersion = "0.12.3"
val specsVersion = "4.8.3"
val catsVersion = "2.1.0"
resolvers += "cwmyers" at "https://raw.github.com/cwmyers/mvn-repo/master/releases/"
//addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
libraryDependencies ++= Seq(
"ws.unfiltered" %% "unfiltered-filter" % unfilteredLibraryVersion,
"ws.unfiltered" %% "unfiltered-directives" % unfilteredLibraryVersion,
"ws.unfiltered" %% "unfiltered-filter" % unfilteredLibraryVersion,
"ws.unfiltered" %% "unfiltered-netty-server" % unfilteredLibraryVersion,
"commons-lang" % "commons-lang" % "2.6",
"org.typelevel" %% "cats-core" % catsVersion,
"org.typelevel" %% "cats-free" % catsVersion,
"org.typelevel" %% "mouse" % "0.24",
"org.slf4j" % "jul-to-slf4j" % "1.7.7",
"ch.qos.logback" % "logback-classic" % "1.1.2",
"com.typesafe.slick" %% "slick" % "3.3.2",
"com.github.tminglei" %% "slick-pg" % "0.19.0",
"postgresql" % "postgresql" % "9.1-901.jdbc4",
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
"org.specs2" %% "specs2-core" % specsVersion % "test",
"org.specs2" %% "specs2-scalacheck" % specsVersion % "test"
)
mainClass in Compile := Some("app.Main") //Used in Universal packageBin
mainClass in (Compile, run) := Some("app.infrastructure.Dev") //Used from normal sbt
//compileInputs in (Compile, compile) <<=
// (compileInputs in (Compile, compile)) dependsOn (scalafmt in Compile)
enablePlugins(JavaServerAppPackaging, DockerPlugin)
// Add your own repo here
dockerRepository := Some("docker.pkg.github.com/cwmyers")
dockerBaseImage := scala.util.Properties.envOrElse("DOCKER_IMAGE", "openjdk:latest")
packageName in Docker := scala.util.Properties.envOrElse("DOCKER_PACKAGE_NAME", packageName.value)