-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
70 lines (67 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
66
67
68
69
70
import Dependencies._
import sbt._
val libVersion = sys.env.get("TRAVIS_TAG") orElse sys.env.get("BUILD_LABEL") getOrElse s"1.0.0-${System.currentTimeMillis / 1000}-SNAPSHOT"
lazy val publishSettings = Seq(
publishMavenStyle := true,
pgpSecretRing := file("local.secring.gpg"),
pgpPublicRing := file("local.pubring.gpg"),
pgpPassphrase := Some(sys.env.getOrElse("GPG_PASSPHRASE", "").toCharArray),
credentials += Credentials(
"Sonatype Nexus Repository Manager",
"oss.sonatype.org",
System.getenv("SONATYPE_USERNAME"),
System.getenv("SONATYPE_PASSWORD")
),
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")
},
publishArtifact in Test := false,
pomIncludeRepository := { _ =>
false
},
pomExtra :=
<url>https://github.com/indix/sparkplug</url>
<licenses>
<license>
<name>Apache License</name>
<url>https://raw.githubusercontent.com/indix/sparkplug/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:indix/sparkplug.git</url>
<connection>scm:git:[email protected]:indix/sparkplug.git</connection>
</scm>
<developers>
<developer>
<id>indix</id>
<name>Indix</name>
<url>http://www.indix.com</url>
</developer>
</developers>
)
lazy val sparkplug = (project in file("."))
.settings(
inThisBuild(
List(
organization := "com.indix",
scalaVersion := "2.12.11",
crossScalaVersions := Seq("2.12.11", "2.11.11"),
version := libVersion,
scalafmtOnCompile := true,
(Test / parallelExecution) := false
)
),
name := "sparkplug",
libraryDependencies ++= Seq(
sparkCore,
sparkSql,
sparkHive,
scalaTest
)
)
.settings(publishSettings: _*)