forked from banzaicloud/spark-metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
48 lines (43 loc) · 2.1 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
lazy val scala212 = "2.12.12"
lazy val supportedScalaVersions = List(scala212)
lazy val ioPrometheusVersion = "0.15.0"
lazy val root = (project in file("."))
.settings(
name := "spark-metrics",
organization := "com.banzaicloud",
organizationHomepage := Some(url("https://banzaicloud.com")),
homepage := Some(url("https://github.com/banzaicloud/spark-metrics")),
developers := List(
Developer("stoader", "Sebastian Toader", "[email protected]", url("https://github.com/stoader")),
Developer("sancyx", "Sandor Magyari", "[email protected]", url("https://github.com/sancyx")),
Developer("baluchicken", "Balint Molnar", "[email protected]", url("https://github.com/baluchicken"))
),
scmInfo := Some(ScmInfo(url("https://github.com/banzaicloud/spark-metrics"), "[email protected]:banzaicloud/spark-metrics.git")),
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0")),
scalaVersion := scala212,
crossScalaVersions := supportedScalaVersions,
version := "3.2-1.0.0",
libraryDependencies ++= Seq(
"io.prometheus" % "simpleclient" % ioPrometheusVersion,
"io.prometheus" % "simpleclient_dropwizard" % ioPrometheusVersion,
"io.prometheus" % "simpleclient_common" % ioPrometheusVersion,
"io.prometheus" % "simpleclient_pushgateway" % ioPrometheusVersion,
"io.dropwizard.metrics" % "metrics-core" % "4.2.9" % Provided,
"io.prometheus.jmx" % "collector" % "0.17.0",
"org.apache.spark" %% "spark-core" % "3.2.1" % Provided,
"com.novocode" % "junit-interface" % "0.11" % Test,
// Spark shaded jetty is not resolved in scala 2.11
// Described in https://issues.apache.org/jira/browse/SPARK-18162?focusedCommentId=15818123#comment-15818123
// "org.eclipse.jetty" % "jetty-servlet" % "9.4.18.v20190429" % Test
),
testOptions in Test := Seq(Tests.Argument(TestFrameworks.JUnit, "-a"))
)
publishMavenStyle := true
useGpg := true
// Add sonatype repository settings
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)