-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.sbt
44 lines (41 loc) · 1.33 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
import Dependencies._
name := "PracticalScalaFP"
ThisBuild / version := "0.0.1"
lazy val IntegrationTest = config("it") extend(Test)
lazy val root = (project in file("."))
.enablePlugins(DockerPlugin)
.enablePlugins(AshScriptPlugin)
.enablePlugins(JavaAppPackaging)
.settings(
name := "PracticalFPinScala",
scalaVersion := "2.13.10",
Compile / mainClass := Some("bunyod.fp.MainIO"),
Global / onChangedBuildSource := ReloadOnSourceChanges,
// scalacOptions ++= CompilerOptions.cOptions,
// scalafmtOnCompile := true,
scalacOptions ++= Seq(
"-Xfatal-warnings", // New lines for each options
"-deprecation",
"-unchecked",
"-language:implicitConversions",
"-language:higherKinds",
"-language:existentials",
"-language:postfixOps",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Xfatal-warnings",
"-deprecation",
"-Xlint:-unused,_",
"-deprecation",
"-Ymacro-annotations",
"-Xmaxerrs",
"200",
),
dockerBaseImage := "openjdk:8u201-jre-alpine3.9",
dockerExposedPorts ++= Seq(8080),
makeBatScripts := Seq(),
dockerUpdateLatest := true,
libraryDependencies ++= rootDependencies
)
.configs(IntegrationTest)
.settings(Defaults.itSettings: _*)