forked from sangria-graphql/sangria
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
80 lines (63 loc) · 2.46 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
name := "sangria"
organization := "org.sangria-graphql"
version := "1.4.3-SNAPSHOT"
description := "Scala GraphQL implementation"
homepage := Some(url("http://sangria-graphql.org"))
licenses := Seq("Apache License, ASL Version 2.0" → url("http://www.apache.org/licenses/LICENSE-2.0"))
scalaVersion := "2.12.7"
crossScalaVersions := Seq("2.11.11", "2.12.7")
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-Xlint:-missing-interpolator,-unused,_")
scalacOptions ++= {
if (scalaVersion.value startsWith "2.12")
Seq.empty
else
Seq("-target:jvm-1.7")
}
testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-oF")
libraryDependencies ++= Seq(
// AST Parser
"org.parboiled" %% "parboiled" % "2.1.4",
// AST Visitor
"org.sangria-graphql" %% "macro-visit" % "0.1.1",
// Marshalling
"org.sangria-graphql" %% "sangria-marshalling-api" % "1.0.3",
// Streaming
"org.sangria-graphql" %% "sangria-streaming-api" % "1.0.0",
// Macros
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
// Testing
"org.scalatest" %% "scalatest" % "3.0.5" % "test",
"org.sangria-graphql" %% "sangria-marshalling-testkit" % "1.0.1" % Test,
"org.sangria-graphql" %% "sangria-spray-json" % "1.0.1" % Test,
"org.sangria-graphql" %% "sangria-argonaut" % "1.0.0" % Test,
"org.sangria-graphql" %% "sangria-ion" % "1.0.0" % Test,
"org.sangria-graphql" %% "sangria-monix" % "1.0.0" % Test,
"org.sangria-graphql" %% "sangria-rxscala" % "1.0.0" % Test,
"eu.timepit" %% "refined" % "0.9.2" % Test,
// CATs
"net.jcazevedo" %% "moultingyaml" % "0.4.0" % Test,
"io.github.classgraph" % "classgraph" % "4.0.6" % Test
)
// Publishing
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := (_ ⇒ false)
publishTo := Some(
if (isSnapshot.value)
"snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
else
"releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
startYear := Some(2015)
organizationHomepage := Some(url("https://github.com/sangria-graphql"))
developers := Developer("OlegIlyenko", "Oleg Ilyenko", "", url("https://github.com/OlegIlyenko")) :: Nil
scmInfo := Some(ScmInfo(
browseUrl = url("https://github.com/sangria-graphql/sangria.git"),
connection = "scm:git:git@github.com:sangria-graphql/sangria.git"
))
// nice *magenta* prompt!
shellPrompt in ThisBuild := { state ⇒
scala.Console.MAGENTA + Project.extract(state).currentRef.project + "> " + scala.Console.RESET
}