Visitar URL original
Migrate from sbt-sonatype to built-in sonaRelease by xerial · Pull Request #898 · msgpack/msgpack-java · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
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 <noreply@anthropic.com>
  • Loading branch information
xerial and claude committed Jul 19, 2025
commit 7577b1d9c4de2d152454da4371732fe719b4e441
25 changes: 24 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,23 @@ ThisBuild / dynverSonatypeSnapshots := true
// Use coursier friendly version separator
ThisBuild / dynverSeparator := "-"

// Publishing metadata
ThisBuild / homepage := Some(url("https://msgpack.org/"))
ThisBuild / licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/msgpack/msgpack-java"),
"scm:git@github.com:msgpack/msgpack-java.git"
)
)
ThisBuild / developers := List(
Developer(id = "frsyuki", name = "Sadayuki Furuhashi", email = "frsyuki@users.sourceforge.jp", url = url("https://github.com/frsyuki")),
Developer(id = "muga", name = "Muga Nishizawa", email = "muga.nishizawa@gmail.com", url = url("https://github.com/muga")),
Developer(id = "oza", name = "Tsuyoshi Ozawa", email = "ozawa.tsuyoshi@gmail.com", url = url("https://github.com/oza")),
Developer(id = "komamitsu", name = "Mitsunori Komatsu", email = "komamitsu@gmail.com", url = url("https://github.com/komamitsu")),
Developer(id = "xerial", name = "Taro L. Saito", email = "leo@xerial.org", url = url("https://github.com/xerial"))
)

val buildSettings = Seq[Setting[_]](
organization := "org.msgpack",
organizationName := "MessagePack",
Expand All @@ -38,7 +55,13 @@ val buildSettings = Seq[Setting[_]](
}
},
// Add sonatype repository settings
publishTo := sonatypePublishToBundle.value,
publishTo := {
if (isSnapshot.value) {
Some("snapshots" at "https://s01.oss.sonatype.org/content/repositories/snapshots")
} else {
Some("releases" at "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2")
}
},
// Style check config: (sbt-jchekcstyle)
jcheckStyleConfig := "facebook",
// Run jcheckstyle both for main and test codes
Expand Down
1 change: 0 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.12.2")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1")
// TODO: Fixes jacoco error:
// java.lang.NoClassDefFoundError: Could not initialize class org.jacoco.core.internal.flow.ClassProbesAdapter
Expand Down
18 changes: 0 additions & 18 deletions sonatype.sbt

This file was deleted.