forked from ringcentral/cassandra4io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
88 lines (82 loc) · 2.92 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
name := "cassandra4io"
inThisBuild(
List(
organization := "com.ringcentral",
organizationName := "ringcentral",
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
scalaVersion := crossScalaVersions.value.head,
crossScalaVersions := Seq("2.13.15", "2.12.20"),
licenses := Seq(("Apache-2.0", url("https://opensource.org/licenses/Apache-2.0"))),
homepage := Some(url("https://github.com/ringcentral/cassandra4io")),
developers := List(
Developer(id = "narma", name = "Sergey Rublev", email = "alzo@alzo.space", url = url("https://narma.github.io")),
Developer(
id = "alexuf",
name = "Alexey Yuferov",
email = "aleksey.yuferov@icloud.com",
url = url("https://github.com/alexuf")
)
)
)
)
lazy val root = (project in file("."))
.configs(IntegrationTest)
.settings(
Defaults.itSettings,
IntegrationTest / fork := true,
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-effect" % "3.5.7",
"co.fs2" %% "fs2-core" % "3.9.2",
"com.datastax.oss" % "java-driver-core" % "4.17.0",
"com.chuusai" %% "shapeless" % "2.3.10"
) ++ Seq(
"com.disneystreaming" %% "weaver-cats" % "0.8.3" % "it,test",
"org.testcontainers" % "testcontainers" % "1.20.4" % "it",
"com.dimafeng" %% "testcontainers-scala-cassandra" % "0.41.4" % "it",
"ch.qos.logback" % "logback-classic" % "1.5.12" % "it,test"
) ++ (scalaBinaryVersion.value match {
case v if v.startsWith("2.13") =>
Seq.empty
case v if v.startsWith("2.12") =>
Seq("org.scala-lang.modules" %% "scala-collection-compat" % "2.11.0")
case other =>
sys.error(s"Unsupported scala version: $other")
})
)
Compile / compile / scalacOptions ++= Seq(
"-encoding",
"utf-8",
"-feature",
"-unchecked",
"-deprecation"
) ++
(scalaBinaryVersion.value match {
case v if v.startsWith("2.13") =>
List(
"-Xlint:strict-unsealed-patmat",
"-Xlint:-serial",
// "-Ywarn-unused",
"-Ymacro-annotations",
"-Yrangepos",
"-Werror",
"-explaintypes",
"-language:higherKinds",
"-language:implicitConversions",
"-Xfatal-warnings",
"-Wconf:any:error"
)
case v if v.startsWith("2.12") =>
List(
"-language:higherKinds",
// "-Ywarn-unused",
"-Yrangepos",
"-explaintypes",
"-language:higherKinds",
"-language:implicitConversions",
"-Xfatal-warnings"
)
case v if v.startsWith("0.") =>
Nil
case other => sys.error(s"Unsupported scala version: $other")
})
testFrameworks := Seq(new TestFramework("weaver.framework.CatsEffect"))