Migrate from OSSRH to Central Portal (#3770)

This commit is contained in:
Naoki Takezoe
2025-06-08 00:17:29 +09:00
committed by GitHub
parent 185c01db99
commit 1b7eb69083

View File

@@ -215,9 +215,9 @@ executableKey := {
outputFile
}
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
else localStaging.value
}
publishMavenStyle := true
pomIncludeRepository := { _ =>