forked from databricks/spark-xml
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
executable file
·112 lines (93 loc) · 3.7 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name := "spark-xml"
version := "0.14.0"
organization := "com.databricks"
scalaVersion := "2.12.10"
crossScalaVersions := Seq("2.12.10", "2.13.5")
scalacOptions := Seq("-unchecked", "-deprecation")
val sparkVersion = sys.props.get("spark.testVersion").getOrElse("3.2.0")
// 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.4",
"org.apache.ws.xmlschema" % "xmlschema-core" % "2.2.5",
"org.slf4j" % "slf4j-api" % "1.7.30" % Provided,
"org.scalatest" %% "scalatest" % "3.2.9" % 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
)
publishMavenStyle := true
pomExtra :=
<url>https://github.com/databricks/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>git@github.com:databricks/spark-xml.git</url>
<connection>scm:git:git@github.com:databricks/spark-xml.git</connection>
</scm>
<developers>
<developer>
<id>hyukjinkwon</id>
<name>Hyukjin Kwon</name>
</developer>
<developer>
<id>srowen</id>
<name>Sean Owen</name>
</developer>
</developers>
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
credentials += Credentials(
"Sonatype Nexus Repository Manager",
"oss.sonatype.org",
sys.env.getOrElse("USERNAME", ""),
sys.env.getOrElse("PASSWORD", ""))
resolvers +=
"GCS Maven Central mirror" at "https://maven-central.storage-download.googleapis.com/maven2/"
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.databricks" %% "spark-xml" % "0.12.0")
mimaBinaryIssueFilters ++= {
import com.typesafe.tools.mima.core.ProblemFilters.exclude
import com.typesafe.tools.mima.core.DirectMissingMethodProblem
Seq(
exclude[DirectMissingMethodProblem](
"com.databricks.spark.xml.parsers.StaxXmlParser.convertField"),
exclude[DirectMissingMethodProblem](
"com.databricks.spark.xml.util.TypeCast.parseXmlTimestamp"),
exclude[DirectMissingMethodProblem](
"com.databricks.spark.xml.util.TypeCast.supportedXmlTimestampFormatters"),
exclude[DirectMissingMethodProblem](
"com.databricks.spark.xml.util.TypeCast.parseXmlDate"),
exclude[DirectMissingMethodProblem](
"com.databricks.spark.xml.util.TypeCast.supportedXmlDateFormatters"),
exclude[DirectMissingMethodProblem](
"com.databricks.spark.xml.util.TypeCast.supportedXmlDateFormatters"),
exclude[DirectMissingMethodProblem](
"com.databricks.spark.xml.util.TypeCast.parseXmlDate"),
exclude[DirectMissingMethodProblem](
"com.databricks.spark.xml.util.TypeCast.supportedXmlTimestampFormatters"),
exclude[DirectMissingMethodProblem](
"com.databricks.spark.xml.util.TypeCast.parseXmlTimestamp"),
exclude[DirectMissingMethodProblem](
"com.databricks.spark.xml.util.TypeCast.isTimestamp"),
exclude[DirectMissingMethodProblem](
"com.databricks.spark.xml.util.TypeCast.castTo"),
exclude[DirectMissingMethodProblem](
"com.databricks.spark.xml.util.TypeCast.castTo$default$4")
)
}