Skip to content

Commit

Permalink
use more modern publishing configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudolph committed Apr 8, 2023
1 parent 5a7e869 commit 9b9286a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
2 changes: 2 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.18")
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")
21 changes: 18 additions & 3 deletions publish.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name := "sbt-revolver"

organization := "io.spray"

version := "0.10.0-SNAPSHOT"

description := "An SBT plugin for dangerously fast development turnaround in Scala"

startYear := Some(2011)
Expand All @@ -12,6 +10,23 @@ homepage := Some(url("http://github.com/spray/sbt-revolver"))

organizationHomepage := Some(url("http://spray.io"))

licenses in GlobalScope += "Apache License 2.0" -> url("https://github.com/spray/sbt-revolver/raw/master/LICENSE")
licenses += "Apache License 2.0" -> url("https://github.com/spray/sbt-revolver/raw/master/LICENSE")

publishTo := {
val nexus = "https://oss.sonatype.org/"
Some {
if (version.value.trim.contains("+")) "snapshots" at nexus + "content/repositories/snapshots"
else "releases" at nexus + "service/local/staging/deploy/maven2"
}
}

publishMavenStyle := true
Test / publishArtifact := false
pomIncludeRepository := { _ => false }

scmInfo := Some(
ScmInfo(
browseUrl = url("https://github.com/spray/sbt-revolver"),
connection = "scm:git:[email protected]:spray/sbt-revolver.git"
)
)

0 comments on commit 9b9286a

Please sign in to comment.