-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.sbt
74 lines (61 loc) · 2.05 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
name := "flink-adt"
version := "0.6.1"
lazy val `scala 2.12` = "2.12.15"
lazy val `scala 2.13` = "2.13.8"
lazy val `scala 3` = "3.1.2"
scalaVersion := `scala 2.13`
crossScalaVersions := Seq(`scala 2.12`, `scala 2.13`, `scala 3`)
organization := "io.findify"
licenses := Seq("MIT" -> url("https://opensource.org/licenses/MIT"))
homepage := Some(url("https://github.com/findify/flink-adt"))
publishMavenStyle := true
publishTo := sonatypePublishToBundle.value
// Need to isolate macro usage to version-specific folders.
Compile / unmanagedSourceDirectories += {
val dir = (Compile / scalaSource).value.getPath
val Some((major, _)) = CrossVersion.partialVersion(scalaVersion.value)
file(s"$dir-$major")
}
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-language:higherKinds"
)
// Need extra leniency on how much we can inline during typeinfo derivation.
scalacOptions ++= {
if (scalaVersion.value.startsWith("3")) {
Seq("-Xmax-inlines", "128")
} else {
Nil
}
}
lazy val flinkVersion = "1.15.0"
libraryDependencies ++= Seq(
"org.apache.flink" % "flink-java" % flinkVersion % Provided,
"org.apache.flink" % "flink-test-utils" % flinkVersion % Test,
"org.scalatest" %% "scalatest" % "3.2.12" % Test,
"org.typelevel" %% "cats-core" % "2.7.0" % Test
)
// Macro libraries are based on major version.
libraryDependencies ++= {
if (scalaBinaryVersion.value.startsWith("2")) {
Seq(
"com.softwaremill.magnolia1_2" %% "magnolia" % "1.1.2",
"org.scala-lang" % "scala-reflect" % scalaVersion.value % Provided
)
} else {
Seq(
"com.softwaremill.magnolia1_3" %% "magnolia" % "1.1.1",
"org.scala-lang" %% "scala3-compiler" % scalaVersion.value % Provided
)
}
}
scmInfo := Some(
ScmInfo(
url("https://github.com/findify/flink-adt"),
"scm:[email protected]:findify/flink-adt.git"
)
)
developers := List(
Developer(id = "romangrebennikov", name = "Roman Grebennikov", email = "[email protected]", url = url("https://dfdx.me/"))
)