-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.sbt
54 lines (44 loc) · 1.6 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
name := "ibmos2spark"
organization := "com.ibm.ibmos2spark"
version := "1.0.0-dev"
scalaVersion := "2.11.8"
crossScalaVersions := Seq("2.10.4", "2.11.8")
libraryDependencies ++= {
val sparkVersion = if (scalaVersion.value == "2.11.8") "2.0.2" else "1.6.0"
Seq(
"org.apache.spark" %% "spark-core" % sparkVersion % "provided"
)
}
assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false)
// Your profile name of the sonatype account. The default is the same with the organization value
sonatypeProfileName := "com.ibm.ibmos2spark"
// To sync with Maven central, you need to supply the following information:
pomExtra in Global := {
<url>https://github.com/ibm-watson-data-labs/ibmos2spark/</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<connection>scm:git:github.com/ibm-watson-data-labs/ibmos2spark</connection>
<developerConnection>scm:git:[email protected]:ibm-watson-data-labs/ibmos2spark</developerConnection>
<url>github.com/ibm-watson-data-labs/ibmos2spark</url>
</scm>
<developers>
<developer>
<id>gadamc</id>
<name>G Adam Cox</name>
<url>https://github.com/gadamc</url>
</developer>
</developers>
}
lazy val root = (project in file(".")).
enablePlugins(BuildInfoPlugin).
settings(
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoPackage := organization.value,
buildInfoOptions += BuildInfoOption.ToMap,
buildInfoOptions += BuildInfoOption.ToJson
)