Repository navigation
Expand file tree
/
Copy pathbuild.sbt
More file actions
41 lines (24 loc) · 1.44 KB
/
Copy pathbuild.sbt
File metadata and controls
41 lines (24 loc) · 1.44 KB
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
name := "spark-tree-plotting"
version := "0.2"
scalaVersion := "2.11.12"
libraryDependencies += "net.liftweb" % "lift-json_2.11" % "3.3.0"
assemblyShadeRules in assembly := Seq(
ShadeRule.rename("net.liftweb.json.**" -> "org.lift.web.library.json.@1").inAll
)
// Spark Packages config
spName := "julioasotodv/spark-tree-plotting"
sparkVersion := "2.3.2"
sparkComponents += "mllib"
credentials += Credentials(Path.userHome / ".ivy2" / ".sbtcredentials")
spShortDescription := "A simple tool for plotting Spark ML's Decision Trees"
spDescription := """This module provides a simple tool for plotting an easy to understand graphical representation
|of Spark ML's DecisionTreeClassificationModels, very similar to the one Python's Scikit-Learn provides.
|Given a DecisionTreeClassificationModel, spark_tree_plotting generates a JSON file with
|the relevant metadata in order to plot the tree. Moreover, a simple JSON-to-DOT python
|script allows you to plot trees in PySpark in a very simple manner (just as in Scikit-Learn)""".stripMargin
licenses += "MIT" -> url("https://opensource.org/licenses/MIT")
spIncludeMaven := false
// Resulting name for the assembly jar
assemblyJarName in assembly := "spark-tree-plotting_0.2.jar"
// Do not include the Scala library itself in the jar
assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false)