Skip to content

Commit

Permalink
chore: Added sbt-ci-release plugin and configs
Browse files Browse the repository at this point in the history
  • Loading branch information
dutrevis committed Jun 7, 2024
1 parent 9b29fb2 commit 4c136a3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
30 changes: 27 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name := "spark-resources-metrics-plugin"

version := "0.1-SNAPSHOT"
isSnapshot := true

scalaVersion := "2.12.19"
crossScalaVersions := Seq("2.12.19", "2.13.13")

Expand All @@ -22,3 +19,30 @@ Test / test / coverageHighlighting := true
// coverageMinimumBranchPerPackage := 85
// coverageMinimumStmtPerFile := 85
// coverageMinimumBranchPerFile := 80

inThisBuild(
List(
organization := "io.github.dutrevis",
description := """
Spark Resource Metrics plugin is an Apache Spark plugin that
registers metrics onto the Apache Spark metrics system, that
will sink values collected from operational system's resources,
aiming to cover metrics that the Spark metrics system do not
provide, like the Ganglia monitoring system metrics.
""",
homepage := Some(
url("https://github.com/dutrevis/spark-resources-metrics-plugin")
),
licenses := List(
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
developers := List(
Developer(
id = "dutrevis",
name = "Eduardo Trevisani",
email = "",
url = url("https://github.com/dutrevis")
)
)
)
)
3 changes: 1 addition & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
logLevel := Level.Warn

addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.11")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.4")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")

// This instructs sbt to always include the dependency without creating an error for different available versions.
ThisBuild / libraryDependencySchemes += "org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always

0 comments on commit 4c136a3

Please sign in to comment.