forked from sangria-graphql/sangria
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
63 lines (47 loc) · 1.91 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
name := "sangria"
organization := "org.sangria-graphql"
version := "0.6.4-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.11.8"
scalacOptions ++= Seq("-deprecation", "-feature", "-Xlint", "-Xlint:-missing-interpolator")
libraryDependencies ++= Seq(
// macros
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
// parsing
"org.parboiled" %% "parboiled" % "2.1.3",
// marshalling
"org.sangria-graphql" %% "sangria-marshalling-api" % "0.2.1",
// testing
"org.scalatest" %% "scalatest" % "2.2.6" % "test",
"org.sangria-graphql" %% "sangria-marshalling-testkit" % "0.2.1" % "test",
"org.sangria-graphql" %% "sangria-spray-json" % "0.3.1" % "test",
"org.sangria-graphql" %% "sangria-ion" % "0.1.0" % "test"
)
git.remoteRepo := "[email protected]:sangria-graphql/sangria.git"
// Publishing
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := (_ => false)
publishTo := Some(
if (version.value.trim.endsWith("SNAPSHOT"))
"snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
else
"releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
// Site and docs
site.settings
site.includeScaladoc()
ghpages.settings
// nice *magenta* prompt!
shellPrompt in ThisBuild := { state =>
scala.Console.MAGENTA + Project.extract(state).currentRef.project + "> " + scala.Console.RESET
}
// Additional meta-info
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:[email protected]:sangria-graphql/sangria.git"
))