Skip to content

Commit a911305

Browse files
committed
Publish to maven central.
1 parent 3b2c06a commit a911305

2 files changed

Lines changed: 33 additions & 3 deletions

File tree

build.sbt

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,38 @@
1-
name := "SparkPlugins"
1+
name := "spark-plugins"
22

33
version := "0.1"
4+
isSnapshot := false
5+
46
scalaVersion := "2.12.10"
57

68
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
79

810
libraryDependencies += "io.dropwizard.metrics" % "metrics-core" % "4.1.1"
9-
1011
//libraryDependencies += "org.apache.hadoop" % "hadoop-common" % "2.7.4"
1112
libraryDependencies += "org.apache.hadoop" % "hadoop-common" % "3.2.0"
12-
1313
libraryDependencies += "org.apache.spark" %% "spark-core" % "3.0.1"
14+
15+
// publishing to Sonatype Nexus repository and Maven
16+
publishMavenStyle := true
17+
18+
organization := "ch.cern.sparkmeasure"
19+
description := "SparkPlugins provides code and examples of Apache Spark Plugin extensions to the metrics system applied to measuring I/O from cloud Filesystems, OS/system metrics and custom metrics."
20+
developers := List(Developer(
21+
"LucaCanali", "Luca Canali", "Luca.Canali@cern.ch",
22+
url("https://github.com/LucaCanali")
23+
))
24+
homepage := Some(url("https://github.com/cerndb/SparkPlugins"))
25+
26+
publishTo := Some(
27+
if (isSnapshot.value)
28+
Opts.resolver.sonatypeSnapshots
29+
else
30+
Opts.resolver.sonatypeStaging
31+
)
32+
33+
scmInfo := Some(
34+
ScmInfo(
35+
url("https://github.com/cerndb/SparkPlugins"),
36+
"scm:git@github.com:cerndb/SparkPlugins.git"
37+
)
38+
)

project/plugins.sbt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
logLevel := Level.Warn
2+
3+
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")
4+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.4")
5+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")

0 commit comments

Comments
 (0)