forked from Jarlakxen/drunk
/
build.sbt
77 lines (57 loc) · 2.04 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
// ··· Project Settings ···
// scalafixSettings
// ··· Project Info ···
name := "drunk"
organization := "rice456"
description := "A simple GraphQL client on top of Sangria, Akka HTTP and Circe"
scalaVersion := "2.12.15"
version := "2.5.0"
publishMavenStyle := true
githubOwner := "rice456"
githubRepository := "drunk"
githubTokenSource := TokenSource.Environment("GITHUB_TOKEN")
updateOptions := updateOptions.value.withGigahorse(false) // fix (publish) okhttp3.internal.http2.StreamResetException
// ··· Project Options ···
lazy val root = (project in file("."))
scalacOptions ++= Seq(
"-encoding",
"utf8",
"-feature",
"-language:postfixOps",
"-language:implicitConversions",
"-language:higherKinds",
"-unchecked",
"-deprecation",
"-Ymacro-expand:normal"
)
// ··· Project Repositories ···
resolvers ++= Seq(Resolver.sonatypeRepo("releases"), Resolver.sonatypeRepo("snapshots"))
// ··· Project Dependencies ···
val sangriaV = "1.4.+"
val sangriaCirceV = "1.2.1"
val akkaHttpV = "10.1.+"
val akkaHttpCircleV = "1.22.+"
val circeV = "0.10.+"
val slf4JV = "1.7.25"
val logbackV = "1.2.3"
val scalatestV = "3.0.5"
libraryDependencies ++= Seq(
// --- GraphQL --
"org.sangria-graphql" %% "sangria" % sangriaV,
"org.sangria-graphql" %% "sangria-circe" % sangriaCirceV,
// --- Akka --
"com.typesafe.akka" %% "akka-http" % akkaHttpV,
"de.heikoseeberger" %% "akka-http-circe" % akkaHttpCircleV,
// --- Utils ---
"io.circe" %% "circe-generic" % circeV,
"io.circe" %% "circe-parser" % circeV,
// --- Logger ---
"org.slf4j" % "slf4j-api" % slf4JV,
"ch.qos.logback" % "logback-classic" % logbackV % Test,
// --- Testing ---
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpV % Test,
"org.scalatest" %% "scalatest" % scalatestV % Test
)
// ··· Testing Configuration ···
fork in (Test, run) := false
scalacOptions in Test ++= Seq("-Yrangepos")