forked from databricks/spark-xml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
executable file
·85 lines (67 loc) · 2.32 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
name := "spark-xml"
version := "0.11.0"
organization := "com.databricks"
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.6")
// To avoid packaging it, it's Provided below
autoScalaLibrary := false
libraryDependencies ++= Seq(
"commons-io" % "commons-io" % "2.7",
"org.glassfish.jaxb" % "txw2" % "2.3.3",
"org.apache.ws.xmlschema" % "xmlschema-core" % "2.2.5",
"org.slf4j" % "slf4j-api" % "1.7.25" % Provided,
"org.scalatest" %% "scalatest" % "3.2.2" % 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>[email protected]:databricks/spark-xml.git</url>
<connection>scm:git:[email protected]: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 := {}
// Prints JUnit tests in output
testOptions in Test := Seq(Tests.Argument(TestFrameworks.JUnit, "-v"))
mimaPreviousArtifacts := Set("com.databricks" %% "spark-xml" % "0.10.0")
mimaBinaryIssueFilters ++= {
import com.typesafe.tools.mima.core._
Seq(
)
}