Skip to content

Commit e0ccb4d

Browse files
authored
Merge pull request #420 from eed3si9n/wip/publish
Update publishing
2 parents e14f326 + 7bb7ce7 commit e0ccb4d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build.sbt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ ThisBuild / developers := List(
3939
ThisBuild / turbo := true
4040
ThisBuild / pomIncludeRepository := (_ => false)
4141
ThisBuild / publishTo := {
42-
val nexus = "https://oss.sonatype.org/"
43-
Some("releases" at nexus + "service/local/staging/deploy/maven2")
42+
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
43+
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
44+
else localStaging.value
4445
}
4546

4647
def commonSettings: Seq[Setting[?]] = Seq(

0 commit comments

Comments
 (0)