Skip to content

Commit f775717

Browse files
committed
update publish setting
1 parent a4984c4 commit f775717

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

.scala-steward.conf

Lines changed: 0 additions & 8 deletions
This file was deleted.

build.sbt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@ val accounts: Seq[Account] = withCSV(accountsCsv, companiesCsv) { (a, c) =>
5151
}
5252
""",
5353
publishTo := {
54-
val nexus = "https://oss.sonatype.org/"
55-
if (version.value.trim.endsWith("SNAPSHOT"))
56-
Some("snapshots" at nexus + "content/repositories/snapshots")
57-
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
54+
if (isSnapshot.value) { None }
55+
else { localStaging.value }
5856
},
5957
publishMavenStyle := true,
6058
pomIncludeRepository := { x => false },

project/plugins.sbt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.5")
2-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.21")
32
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1")
43
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.4")
54
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.4.0")

0 commit comments

Comments
 (0)