GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Migrate from sbt-sonatype to built-in sonaRelease by xerial · Pull Request #898 · msgpack/msgpack-java

Conversation

@xerial

@xerial xerial commented Jul 19, 2025

Copy link
Copy Markdown
Member

Summary

This PR migrates the project from the deprecated sbt-sonatype plugin to the built-in sonaRelease functionality available in modern sbt versions.

Changes made:

  • ✅ Removed sbt-sonatype plugin dependency from project/plugins.sbt
  • ✅ Moved publishing metadata from sonatype.sbt to build.sbt
  • ✅ Updated publishTo configuration to use direct Sonatype URLs
  • ✅ Consolidated all publishing configuration into a single file

Benefits:

  • Reduces external plugin dependencies
  • Uses modern sbt built-in functionality
  • Simplifies the build configuration
  • Future-proofs the publishing setup

Test plan

  • Build compilation (./sbt compile) - ✅ Works
  • Local publishing (./sbt publishLocal) - ✅ Works
  • Verify publishSigned command is available - ✅ Works
  • Verify publishing metadata is correctly configured - ✅ Works

The sbt-sonatype plugin is no longer maintained and this migration follows the same pattern used by other projects like wvlet/airframe#3960.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
xerial and others added 9 commits July 19, 2025 09:22
@xerial @claude
Update sbt-dynver to 5.1.1
efbae14
Fixes #892

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@xerial
Merge branch 'main' into pr-896
53e00e0
@xerial @claude
Migrate from sbt-sonatype to built-in sonaRelease
7577b1d
- 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]>
@xerial @claude
Update to sbt 1.11.3 and fix publishTo configuration
ce5af81
- Update sbt version to 1.11.3 for built-in localStaging support
- Fix publishTo setting to use correct Sonatype Central URLs
- Use localStaging.value for releases and central-snapshots for snapshots

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@xerial @claude
Format code with scalafmt and fix scalafmt configuration
e03ff87
- Fix .scalafmt.conf with version 3.9.8 and scala213 dialect
- Format Scala test code according to project style
- Maintain 180 character line limit and alignment style

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@xerial @claude
Update GitHub Actions workflows for Sonatype Central migration
91aa42f
- Fix secret names to use SONATYPE_USERNAME and SONATYPE_PASSWORD
- Remove deprecated sonatypeBundleRelease command from release workflow
- Consolidate release steps to use publishSigned with correct environment
- Update both release.yml and snapshot.yml workflows

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@xerial @claude
Use sonaRelease command in release workflow
0b6b086
- Replace publishSigned with sonaRelease for proper release flow
- sonaRelease handles both publishing and release to Central Portal

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@xerial @claude
Add publishSigned step back to release workflow
1346b39
- First step: publishSigned to stage signed artifacts
- Second step: sonaRelease to release staged artifacts to Central
- Both steps needed for proper release flow

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@xerial @claude
Revert to original workflow structure with updated secrets
68548a1
- Restore "Build bundle" and "Release to Sonatype" step names
- Keep publishSigned in Build bundle step
- Use sonaRelease in Release step with correct secret names
- Maintain original workflow structure with modern functionality

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@xerial
xerial enabled auto-merge (squash) July 19, 2025 17:11
@xerial
xerial merged commit 83a1892 into main Jul 19, 2025
@xerial
xerial deleted the migrate-to-sonarelease branch July 19, 2025 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@xerial
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.