-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.sbt
89 lines (66 loc) · 2.74 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
name := "spark-google-adwords"
version := "0.9.0"
organization := "com.crealytics"
crossScalaVersions := Seq("2.11.10", "2.10.6")
scalaVersion := crossScalaVersions.value.head
spName := "crealytics/spark-google-adwords"
sparkVersion := "2.1.0"
val testSparkVersion = settingKey[String]("The version of Spark to test against.")
testSparkVersion := sys.props.get("spark.testVersion").getOrElse(sparkVersion.value)
sparkComponents := Seq("core", "sql")
libraryDependencies ++= Seq(
"org.slf4j" % "slf4j-api" % "1.7.25" % "provided",
"com.google.api-ads" % "ads-lib" % "3.2.0" exclude("commons-beanutils", "commons-beanutils"),
"com.google.api-ads" % "adwords-axis" % "3.2.0" exclude("commons-beanutils", "commons-beanutils"),
"commons-beanutils" % "commons-beanutils" % "1.9.3",
"com.google.http-client" % "google-http-client-gson" % "1.22.0",
"com.google.inject" % "guice" % "4.0",
"com.google.inject.extensions" % "guice-assistedinject" % "4.0",
"com.google.inject.extensions" % "guice-multibindings" % "4.0"
)
publishMavenStyle := true
spAppendScalaVersion := true
spIncludeMaven := true
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/crealytics/spark-google-adwords</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:crealytics/spark-google-adwords.git</url>
<connection>scm:git:git@github.com:crealytics/spark-google-adwords.git</connection>
</scm>
<developers>
<developer>
<id>nightscape</id>
<name>Martin Mauch</name>
<url>http://www.crealytics.com</url>
</developer>
</developers>
// Skip tests during assembly
test in assembly := {}
assemblyShadeRules in assembly := Seq(
ShadeRule.rename("com.google.inject.**" -> "shaded.@0").inAll,
ShadeRule.rename("org.apache.commons.**" -> "shaded.@0").inAll
)
addArtifact(artifact in(Compile, assembly), assembly)
// -- MiMa binary compatibility checks ------------------------------------------------------------
import com.typesafe.tools.mima.plugin.MimaKeys.{binaryIssueFilters, previousArtifact}
import com.typesafe.tools.mima.plugin.MimaPlugin.mimaDefaultSettings
mimaDefaultSettings ++ Seq(
previousArtifact := Some("com.crealytics" %% "spark-google-adwords" % "0.8.0"),
binaryIssueFilters ++= Seq(
)
)
// ------------------------------------------------------------------------------------------------