-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.sbt
76 lines (72 loc) · 2.22 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
inThisBuild(List(
organization := "com.github.benfradet",
homepage := Some(url("https://github.com/BenFradet/gsheets4s")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"BenFradet",
"Ben Fradet",
url("https://benfradet.github.io")
)
)
))
lazy val compilerOptions = Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-unchecked",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-unused-import",
"-Xfuture",
"-Ypartial-unification"
)
lazy val baseSettings = Seq(
scalacOptions ++= compilerOptions,
scalacOptions in (Compile, console) ~= {
_.filterNot(Set("-Ywarn-unused-import"))
},
scalacOptions in (Test, console) ~= {
_.filterNot(Set("-Ywarn-unused-import"))
},
scalaVersion := "2.13.8",
)
lazy val catsVersion = "2.7.0"
lazy val catsEffectVersion = "3.3.10"
lazy val circeVersion = "0.14.1"
lazy val refinedVersion = "0.9.28"
lazy val attoVersion = "0.9.5"
lazy val hammockVersion = "0.11.3"
lazy val scalacheckVersion = "1.15.4"
lazy val scalatestVersion = "3.2.11"
lazy val scalaUriVersion = "4.0.1"
lazy val gsheets4s = project.in(file("."))
.settings(name := "gsheets4s")
.settings(baseSettings)
.settings(
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % catsVersion,
"org.typelevel" %% "cats-effect" % catsEffectVersion,
"eu.timepit" %% "refined" % refinedVersion,
"io.lemonlabs" %% "scala-uri" % scalaUriVersion,
) ++ Seq(
"io.circe" %% "circe-core",
"io.circe" %% "circe-generic",
"io.circe" %% "circe-parser"
).map(_ % circeVersion) ++ Seq(
"org.tpolecat" %% "atto-core",
"org.tpolecat" %% "atto-refined"
).map(_ % attoVersion) ++ Seq(
"com.pepegar" %% "hammock-core",
"com.pepegar" %% "hammock-apache-http",
"com.pepegar" %% "hammock-circe"
).map(_ % hammockVersion) ++ Seq(
"org.scalatest" %% "scalatest" % scalatestVersion,
"org.scalacheck" %% "scalacheck" % scalacheckVersion,
"eu.timepit" %% "refined-scalacheck" % refinedVersion
).map(_ % "test")
)