From 61e8ef98c6175d74c85408d7a4ae9b890b1cfc96 Mon Sep 17 00:00:00 2001 From: "Taro L. Saito" Date: Sat, 19 Jul 2025 11:10:17 -0700 Subject: [PATCH] Update publishTo to use Central Portal URLs and localStaging - Use https://central.sonatype.com/repository/maven-snapshots/ for snapshots - Use localStaging.value for releases to support sonaRelease workflow --- build.sbt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index fa62a9c..48aa739 100644 --- a/build.sbt +++ b/build.sbt @@ -6,9 +6,9 @@ organizationName := "xerial.org" description := "snappy-java: A fast compression/decompression library" ThisBuild / publishTo := { - val nexus = "https://s01.oss.sonatype.org/" - if (isSnapshot.value) 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 } licenses := Seq("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.html")) homepage := Some(url("https://github.com/xerial/snappy-java"))