Skip to content

Commit 7785995

Browse files
committed
fixes for new workflow copied from main
1 parent 7dcda7c commit 7785995

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

build.sbt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ThisBuild / semanticdbEnabled := true
2121
ThisBuild / semanticdbVersion := scalafixSemanticdb.revision
2222

2323
ThisBuild / licenses := List(
24-
"MPL 2.0" -> new URL("https://www.mozilla.org/en-US/MPL/2.0/")
24+
"MPL 2.0" -> url("https://www.mozilla.org/en-US/MPL/2.0/")
2525
)
2626

2727
ThisBuild / scmInfo := Some(
@@ -34,15 +34,14 @@ ThisBuild / scmInfo := Some(
3434
ThisBuild / homepage := Some(url("https://github.com/unit-finance/zio-raft"))
3535

3636
ThisBuild / publishTo := {
37-
val nexus = "https://s01.oss.sonatype.org/"
3837
if (isSnapshot.value)
39-
Some("snapshots" at nexus + "content/repositories/snapshots")
40-
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
38+
Some("snapshots" at "https://central.sonatype.com/repository/maven-snapshots/")
39+
else Some("releases" at "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2")
4140
}
4241

4342
ThisBuild / credentials += Credentials(
44-
"Sonatype Nexus Repository Manager",
45-
"s01.oss.sonatype.org",
43+
"OSSRH Staging API Service",
44+
"ossrh-staging-api.central.sonatype.com",
4645
sys.env.getOrElse("SONATYPE_USERNAME", ""),
4746
sys.env.getOrElse("SONATYPE_PASSWORD", "")
4847
)
@@ -59,7 +58,7 @@ ThisBuild / developers := List(
5958
scalaVersion := mainScalaVersion
6059

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

6463
lazy val root = project
6564
.in(file("."))

0 commit comments

Comments
 (0)