Skip to content

Commit

Permalink
Publish to maven central.
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaCanali committed Oct 14, 2020
1 parent 3b2c06a commit a911305
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
31 changes: 28 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,13 +1,38 @@
name := "SparkPlugins"
name := "spark-plugins"

version := "0.1"
isSnapshot := false

scalaVersion := "2.12.10"

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

libraryDependencies += "io.dropwizard.metrics" % "metrics-core" % "4.1.1"

//libraryDependencies += "org.apache.hadoop" % "hadoop-common" % "2.7.4"
libraryDependencies += "org.apache.hadoop" % "hadoop-common" % "3.2.0"

libraryDependencies += "org.apache.spark" %% "spark-core" % "3.0.1"

// publishing to Sonatype Nexus repository and Maven
publishMavenStyle := true

organization := "ch.cern.sparkmeasure"
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."
developers := List(Developer(
"LucaCanali", "Luca Canali", "[email protected]",
url("https://github.com/LucaCanali")
))
homepage := Some(url("https://github.com/cerndb/SparkPlugins"))

publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)

scmInfo := Some(
ScmInfo(
url("https://github.com/cerndb/SparkPlugins"),
"scm:[email protected]:cerndb/SparkPlugins.git"
)
)
5 changes: 5 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
logLevel := Level.Warn

addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.4")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")

0 comments on commit a911305

Please sign in to comment.