forked from autodeployai/pmml4s-spark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
68 lines (48 loc) · 2.04 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
name := "pmml4s-spark"
version := "0.9.16"
organization := "org.pmml4s"
organizationHomepage := Some(new URL("http://pmml4s.org"))
description := "A Spark transformer takes in PMML"
homepage := Some(new URL("https://github.com/autodeployai/pmml4s-spark"))
startYear := Some(2017)
licenses := Seq("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
scalacOptions := Seq("-feature", "-language:_", "-unchecked", "-deprecation", "-encoding", "utf8")
scalacOptions in(Compile, doc) := Seq("-no-link-warnings")
libraryDependencies ++= {
Seq(
"org.pmml4s" %% "pmml4s" % "0.9.16",
"org.apache.spark" %% "spark-mllib" % "2.4.3" % "provided",
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
"junit" % "junit" % "4.12" % "test"
)
}
scalaVersion := "2.12.8"
// publishing
updateOptions := updateOptions.value.withGigahorse(false)
crossScalaVersions := Seq("2.12.8", "2.11.12")
publishMavenStyle := true
useGpg := true
// set overwrite to true for snapshot
publishConfiguration := publishConfiguration.value.withOverwrite(isSnapshot.value)
com.typesafe.sbt.pgp.PgpKeys.publishSignedConfiguration := com.typesafe.sbt.pgp.PgpKeys.publishSignedConfiguration.value.withOverwrite(isSnapshot.value)
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(isSnapshot.value)
com.typesafe.sbt.pgp.PgpKeys.publishLocalSignedConfiguration := com.typesafe.sbt.pgp.PgpKeys.publishLocalSignedConfiguration.value.withOverwrite(isSnapshot.value)
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
pomIncludeRepository := { _ => false }
pomExtra :=
<scm>
<url>git://github.com/autodeployai/pmml4s-spark.git</url>
<connection>scm:git:[email protected]:autodeployai/pmml4s-spark.git</connection>
</scm>
<developers>
<developer>
<id>scorebot</id>
<name>Score Bot</name>
</developer>
</developers>