Skip to content

Commit de47e44

Browse files
authored
Merge pull request #518 from eed3si9n/wip/publish
Publish to Central Portal
2 parents c2f0529 + 5284ef2 commit de47e44

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
@@ -33,8 +33,9 @@ ThisBuild / developers := List(
3333
)
3434
ThisBuild / pomIncludeRepository := (_ => false) // drop repos other than Maven Central from POM
3535
ThisBuild / publishTo := {
36-
val nexus = "https://oss.sonatype.org/"
37-
Some("releases" at nexus + "service/local/staging/deploy/maven2")
36+
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
37+
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
38+
else localStaging.value
3839
}
3940

4041
ThisBuild / Test / classLoaderLayeringStrategy := ClassLoaderLayeringStrategy.Flat

0 commit comments

Comments
 (0)