-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.sbt
43 lines (35 loc) · 1.28 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
inThisBuild(List(
description := "A Spark transformer takes in PMML",
organization := "org.pmml4s",
organizationHomepage := Some(new URL("https://pmml4s.org")),
homepage := Some(url("https://github.com/autodeployai/pmml4s-spark")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"scorebot",
"Score Bot",
url("https://github.com/scorebot")
)
)
))
name := "pmml4s-spark"
startYear := Some(2017)
scalacOptions := Seq("-feature", "-language:_", "-unchecked", "-deprecation", "-encoding", "utf8")
scalacOptions in(Compile, doc) := Seq("-no-link-warnings")
libraryDependencies ++= {
(CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, scalaMajor)) if scalaMajor <= 11 =>
Some("org.apache.spark" %% "spark-mllib" % "2.4.8" % "provided")
case _ =>
Some("org.apache.spark" %% "spark-mllib" % "3.5.2" % "provided")
}).toSeq ++ Seq(
"org.pmml4s" %% "pmml4s" % "1.5.3",
"org.scalatest" %% "scalatest" % "3.2.15" % "test",
"junit" % "junit" % "4.13.2" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test"
)
}
scalaVersion := "2.12.18"
// publishing
crossScalaVersions := Seq("2.12.18", "2.11.12", "2.13.14")