-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
68 lines (61 loc) · 2.03 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
lazy val buildSettings = Seq(
organization := "com.github",
name := "flink-alt",
version := "0.16",
scalaVersion := "2.12.8"
)
val versions = new {
val flink = "1.7.1"
val cats = "1.0.1"
val circe = "0.11.1"
val shapeless = "2.3.3"
val scalatest = "3.0.4"
val scalacheck = "1.13.5"
val checkless = "1.1.8"
val slf4j = "1.7.25"
val paradise = "2.1.0"
}
lazy val compileDependencies = Seq(
"org.apache.flink" %% "flink-scala" % versions.flink % "provided",
"org.apache.flink" %% "flink-streaming-scala" % versions.flink % "provided",
"com.chuusai" %% "shapeless" % versions.shapeless,
"org.typelevel" %% "cats-core" % versions.cats,
"net.sf.trove4j" % "trove4j" % "3.0.3",
"io.circe" %% "circe-core" % versions.circe,
"io.circe" %% "circe-generic" % versions.circe,
"io.circe" %% "circe-parser" % versions.circe,
"io.circe" %% "circe-generic-extras" % versions.circe,
)
lazy val testDependencies = Seq(
"org.typelevel" %% "cats-laws" % versions.cats,
"org.scalatest" %% "scalatest" % versions.scalatest,
"org.scalacheck" %% "scalacheck" % versions.scalacheck,
"com.github.alexarchambault" %% "scalacheck-shapeless_1.13" % versions.checkless,
"org.slf4j" % "slf4j-nop" % versions.slf4j
).map(_ % "test")
lazy val commonSettings = Seq(
scalacOptions := Seq(
"-encoding", "UTF-8",
// "-deprecation",
"-feature",
"-unchecked",
"-language:higherKinds",
"-language:existentials",
"-language:implicitConversions",
"-language:postfixOps",
"-Ywarn-dead-code",
"-Ywarn-unused",
"-Ywarn-unused-import",
"-Ypartial-unification",
// "-Xfatal-warnings",
"-Xfuture",
"-Xlint"
),
libraryDependencies ++= compileDependencies ++ testDependencies,
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.7")
)
lazy val root = Project("flink-alt", file("."))
.settings(Defaults.coreDefaultSettings: _*)
.settings(buildSettings: _*)
.settings(commonSettings: _*)