@@ -36,15 +36,14 @@ ThisBuild / scmInfo := Some(
3636ThisBuild / homepage := Some (url(" https://github.com/unit-finance/zio-raft" ))
3737
3838ThisBuild / 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
4544ThisBuild / 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(
6160scalaVersion := mainScalaVersion
6261
6362resolvers +=
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
6665lazy val commonScalacOptions = Def .setting{
6766 CrossVersion .partialVersion(scalaVersion.value) match {
0 commit comments