-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathbuild.sbt
90 lines (63 loc) · 2.94 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
name := "spark-salesforce"
version := "1.1.3"
organization := "com.springml"
scalaVersion := "2.12.10"
crossScalaVersions := Seq("2.11.12", "2.12.10")
resolvers += "sonatype-snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
libraryDependencies ++= Seq(
"com.force.api" % "force-wsc" % "40.0.0",
"com.force.api" % "force-partner-api" % "40.0.0",
"com.springml" % "salesforce-wave-api" % "1.0.10",
"org.mockito" % "mockito-core" % "2.0.31-beta"
)
parallelExecution in Test := false
resolvers += Resolver.url("artifactory", url("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += "sonatype-releases" at "https://oss.sonatype.org/content/repositories/releases/"
resolvers += "sonatype-snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
resolvers += "Spark Package Main Repo" at "https://dl.bintray.com/spark-packages/maven"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.3" % "test"
libraryDependencies += "com.fasterxml.jackson.dataformat" % "jackson-dataformat-xml" % "2.4.4"
libraryDependencies += "org.codehaus.woodstox" % "woodstox-core-asl" % "4.4.0"
// Spark Package Details (sbt-spark-package)
spName := "springml/spark-salesforce"
spAppendScalaVersion := true
sparkVersion := "2.4.5"
sparkComponents += "sql"
publishMavenStyle := true
spIncludeMaven := true
spShortDescription := "Spark Salesforce Wave Connector"
spDescription := """Spark Salesforce Wave Connector
| - Creates Salesforce Wave Datasets using dataframe
| - Constructs Salesforce Wave dataset's metadata using schema present in dataframe
| - Can use custom metadata for constructing Salesforce Wave dataset's metadata""".stripMargin
// licenses += "Apache-2.0" -> url("http://opensource.org/licenses/Apache-2.0")
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
pomExtra := (
<url>https://github.com/springml/spark-salesforce</url>
<licenses>
<license>
<name>Apache License, Verision 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:github.com/springml/spark-salesforce</connection>
<developerConnection>scm:git:[email protected]:springml/spark-salesforce</developerConnection>
<url>github.com/springml/spark-salesforce</url>
</scm>
<developers>
<developer>
<id>springml</id>
<name>Springml</name>
<url>http://www.springml.com</url>
</developer>
</developers>)