This repository has been archived by the owner on Jun 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
65 lines (61 loc) · 2.01 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
import Dependencies._
val scalaVersion_2_11 = "2.11.11"
val scalaVersion_2_12 = "2.12.4"
val sangriaUtilsVersion = "0.1.1-SNAPSHOT"
lazy val root = (project in file(".")).
settings(
inThisBuild(List(
organization := "de.cap3",
scalaVersion := scalaVersion_2_12,
crossScalaVersions := Seq(scalaVersion_2_11, scalaVersion_2_12),
version := sangriaUtilsVersion
)),
name := "sangria-utils",
scalacOptions in ThisBuild ++= Seq("-unchecked", "-deprecation", "-feature"),
libraryDependencies ++= Seq(
scalaTest % Test,
guice,
"org.sangria-graphql" %% "sangria" % "1.4.0",
"org.sangria-graphql" %% "sangria-play-json" % "1.0.4"
))
.settings(publishingSettings: _*)
val publishingSettings = Seq(
pomIncludeRepository := { _ => false },
publishMavenStyle := true,
description := "Utils and snippets for the sangria grapqhl library for scala.",
licenses := Seq("MIT" -> url("http://opensource.org/licenses/MIT")),
homepage := Some(url("https://github.com/Cap3/sangria-utils")),
publishArtifact in Test := false,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
scmInfo := Some(
ScmInfo(
url("https://github.com/Cap3/sangria-utils"),
"scm:[email protected]/Cap3/sangria-utils.git"
)
),
developers := List(
Developer(
id = "Cap3",
name = "Cap3 GmbH",
email = "[email protected]",
url = url("http://www.cap3.de/")
)
),
credentials += Credentials(
"Sonatype Nexus Repository Manager",
"oss.sonatype.org",
sys.env.getOrElse("SONATYPE_USER", ""),
sys.env.getOrElse("SONATYPE_PASS", "")
),
useGpg := false,
usePgpKeyHex("F3DFAA7AC6C7EF24"),
pgpPublicRing := file("project/.gnupg/pubring.gpg"),
pgpSecretRing := file("project/.gnupg/secring.gpg"),
pgpPassphrase := sys.env.get("PGP_PASS").map(_.toArray)
)