Skip to content

Commit 8a2ec88

Browse files
committed
adjust to sonatype central repo
1 parent 94a4c06 commit 8a2ec88

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

build.sbt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,14 @@ ThisBuild / scmInfo := Some(
3636
ThisBuild / homepage := Some(url("https://github.com/unit-finance/zio-raft"))
3737

3838
ThisBuild / publishTo := {
39-
val nexus = "https://s01.oss.sonatype.org/"
4039
if (isSnapshot.value)
41-
Some("snapshots" at nexus + "content/repositories/snapshots")
42-
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
40+
Some("snapshots" at "https://central.sonatype.com/repository/maven-snapshots/")
41+
else Some("releases" at "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2")
4342
}
4443

4544
ThisBuild / credentials += Credentials(
46-
"Sonatype Nexus Repository Manager",
47-
"s01.oss.sonatype.org",
45+
"OSSRH Staging API Service",
46+
"ossrh-staging-api.central.sonatype.com",
4847
sys.env.getOrElse("SONATYPE_USERNAME", ""),
4948
sys.env.getOrElse("SONATYPE_PASSWORD", "")
5049
)
@@ -61,7 +60,7 @@ ThisBuild / developers := List(
6160
scalaVersion := mainScalaVersion
6261

6362
resolvers +=
64-
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
63+
"Sonatype OSS Snapshots" at "https://central.sonatype.com/repository/maven-snapshots/"
6564

6665
lazy val commonScalacOptions = Def.setting{
6766
CrossVersion.partialVersion(scalaVersion.value) match {

0 commit comments

Comments
 (0)