Skip to content

Commit 7577b1d

Browse files
xerialclaude
andcommitted
Migrate from sbt-sonatype to built-in sonaRelease
- Remove sbt-sonatype plugin dependency from project/plugins.sbt - Move publishing metadata from sonatype.sbt to build.sbt - Update publishTo configuration to use direct Sonatype URLs - Use built-in sbt functionality instead of plugin for Sonatype publishing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 53e00e0 commit 7577b1d

File tree

3 files changed

+24
-20
lines changed

3 files changed

+24
-20
lines changed

build.sbt

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,23 @@ ThisBuild / dynverSonatypeSnapshots := true
1212
// Use coursier friendly version separator
1313
ThisBuild / dynverSeparator := "-"
1414

15+
// Publishing metadata
16+
ThisBuild / homepage := Some(url("https://msgpack.org/"))
17+
ThisBuild / licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
18+
ThisBuild / scmInfo := Some(
19+
ScmInfo(
20+
url("https://github.com/msgpack/msgpack-java"),
21+
"scm:[email protected]:msgpack/msgpack-java.git"
22+
)
23+
)
24+
ThisBuild / developers := List(
25+
Developer(id = "frsyuki", name = "Sadayuki Furuhashi", email = "[email protected]", url = url("https://github.com/frsyuki")),
26+
Developer(id = "muga", name = "Muga Nishizawa", email = "[email protected]", url = url("https://github.com/muga")),
27+
Developer(id = "oza", name = "Tsuyoshi Ozawa", email = "[email protected]", url = url("https://github.com/oza")),
28+
Developer(id = "komamitsu", name = "Mitsunori Komatsu", email = "[email protected]", url = url("https://github.com/komamitsu")),
29+
Developer(id = "xerial", name = "Taro L. Saito", email = "[email protected]", url = url("https://github.com/xerial"))
30+
)
31+
1532
val buildSettings = Seq[Setting[_]](
1633
organization := "org.msgpack",
1734
organizationName := "MessagePack",
@@ -38,7 +55,13 @@ val buildSettings = Seq[Setting[_]](
3855
}
3956
},
4057
// Add sonatype repository settings
41-
publishTo := sonatypePublishToBundle.value,
58+
publishTo := {
59+
if (isSnapshot.value) {
60+
Some("snapshots" at "https://s01.oss.sonatype.org/content/repositories/snapshots")
61+
} else {
62+
Some("releases" at "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2")
63+
}
64+
},
4265
// Style check config: (sbt-jchekcstyle)
4366
jcheckStyleConfig := "facebook",
4467
// Run jcheckstyle both for main and test codes

project/plugins.sbt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.12.2")
21
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1")
32
// TODO: Fixes jacoco error:
43
// java.lang.NoClassDefFoundError: Could not initialize class org.jacoco.core.internal.flow.ClassProbesAdapter

sonatype.sbt

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)