forked from databricks/spark-xml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
executable file
·90 lines (73 loc) · 2.9 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name := "spark-xml"
version := "0.0.1"
organization := "com.darkrows"
scalaVersion := "2.11.12"
crossScalaVersions := Seq("2.11.12", "2.12.10")
scalacOptions := Seq("-unchecked", "-deprecation")
val sparkVersion = sys.props.get("spark.testVersion").getOrElse("2.4.3")
// To avoid packaging it, it's Provided below
autoScalaLibrary := false
libraryDependencies ++= Seq(
"commons-io" % "commons-io" % "2.8.0",
"org.glassfish.jaxb" % "txw2" % "2.3.3",
"org.apache.ws.xmlschema" % "xmlschema-core" % "2.2.5",
"net.sf.saxon" % "Saxon-HE" % "10.3",
"org.slf4j" % "slf4j-api" % "1.7.25" % Provided,
"org.scalatest" %% "scalatest" % "3.2.3" % Test,
"com.novocode" % "junit-interface" % "0.11" % Test,
"org.apache.spark" %% "spark-core" % sparkVersion % Provided,
"org.apache.spark" %% "spark-sql" % sparkVersion % Provided,
"org.scala-lang" % "scala-library" % scalaVersion.value % Provided
)
// dependencyOverrides += "com.google.guava" % "guava" % "11.0.2"
publishMavenStyle := true
pomExtra :=
<url>https://github.com/kazdy/spark-xml</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:kazdy/spark-xml.git</url>
<connection>scm:git:[email protected]:databricks/spark-xml.git</connection>
</scm>
<developers>
<developer>
<id>kazdy</id>
<name>Daniel Kazmirski</name>
</developer>
</developers>
parallelExecution in Test := false
// Skip tests during assembly
test in assembly := {}
fork := true
// Prints JUnit tests in output
testOptions in Test := Seq(Tests.Argument(TestFrameworks.JUnit, "-v"))
mimaPreviousArtifacts := Set("com.darkrows" %% "spark-xml" % "0.0.0")
mimaBinaryIssueFilters ++= {
import com.typesafe.tools.mima.core.ProblemFilters.exclude
import com.typesafe.tools.mima.core.DirectMissingMethodProblem
Seq(
exclude[DirectMissingMethodProblem](
"com.darkrows.spark.xml.util.TypeCast.parseXmlTimestamp"),
exclude[DirectMissingMethodProblem](
"com.darkrows.spark.xml.util.TypeCast.supportedXmlTimestampFormatters"),
exclude[DirectMissingMethodProblem](
"com.darkrows.spark.xml.util.TypeCast.parseXmlDate"),
exclude[DirectMissingMethodProblem](
"com.darkrows.spark.xml.util.TypeCast.supportedXmlDateFormatters"),
exclude[DirectMissingMethodProblem](
"com.darkrows.spark.xml.util.TypeCast.supportedXmlDateFormatters"),
exclude[DirectMissingMethodProblem](
"com.darkrows.spark.xml.util.TypeCast.parseXmlDate"),
exclude[DirectMissingMethodProblem](
"com.darkrows.spark.xml.util.TypeCast.supportedXmlTimestampFormatters"),
exclude[DirectMissingMethodProblem](
"com.darkrows.spark.xml.util.TypeCast.parseXmlTimestamp"),
exclude[DirectMissingMethodProblem](
"com.darkrows.spark.xml.util.TypeCast.isTimestamp")
)
}