Skip to content

Conversation

@xerial
Copy link
Owner

@xerial xerial commented Jul 19, 2025

Summary

  • Removes sbt-sonatype plugin dependency and migrates to sbt's built-in Sonatype publishing functionality
  • Updates to sbt 1.11.3 to support localStaging capabilities
  • Replaces sonatypePublishToBundle with direct Sonatype URL configuration
  • Adds documentation for the new two-step release process (publishSigned + sonaRelease)

Changes Made

  • project/plugins.sbt: Removed sbt-sonatype plugin
  • project/build.properties: Updated sbt version to 1.11.3
  • build.sbt:
    • Replaced sonatypePublishToBundle.value with direct Sonatype URLs
    • Removed sonatypeProfileName setting (no longer needed)
  • CLAUDE.md: Added release process documentation

Benefits

  • Simplifies the build configuration by using built-in sbt functionality
  • Reduces external plugin dependencies
  • Aligns with modern sbt publishing practices
  • Follows the migration pattern used by other projects like msgpack-java

Test Plan

  • Verify project compiles with new configuration
  • Test publishSigned command (staging)
  • Test sonaRelease command (release to Central Portal)

🤖 Generated with Claude Code

xerial and others added 4 commits July 19, 2025 09:47
- Fix typo in 'commit'
- Add PR guidelines and common development tasks
- Update native code build command to use 'make clean-native native'
- Update SNAPPY_VERSION from 1.1.10 to 1.2.2 in VERSION file
- Fix SnappyOutputStreamTest expected compression size for aarch64
  (90277 bytes) to match improved compression ratio in Snappy 1.2.2
- All tests pass with new version

Fixes #662

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

Co-Authored-By: Claude <noreply@anthropic.com>
- Add Makefile* pattern to catch all Makefile variants
- Add **/VERSION pattern to catch VERSION files anywhere in repo
- Ensures tests run when native build configuration or versions change

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

Co-Authored-By: Claude <noreply@anthropic.com>
- Remove sbt-sonatype plugin dependency
- Update to sbt 1.11.3 for built-in Sonatype support
- Replace sonatypePublishToBundle with direct Sonatype URLs
- Add release process documentation to CLAUDE.md
- Simplify publishing workflow using built-in sbt functionality

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

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions bot added the doc label Jul 19, 2025
xerial added 4 commits July 19, 2025 11:10
- Use https://central.sonatype.com/repository/maven-snapshots/ for snapshots
- Use localStaging.value for releases to support sonaRelease workflow
- Revert SNAPPY_VERSION upgrade (1.2.2 -> 1.1.10)
- Revert SnappyOutputStreamTest compression ratio change
- Revert native library binary update
- Revert CI workflow trigger additions

These changes should be in separate PRs, not part of the publishing migration.
- Replace sonatypeBundleRelease with sonaRelease
- Update environment variable names to standard SONATYPE_USERNAME/PASSWORD
- Aligns with sbt's built-in Sonatype publishing workflow
- Update SONATYPE_USER to SONATYPE_USERNAME
- Update SONATYPE_PASS to SONATYPE_PASSWORD
- Aligns with standard naming used in sonaRelease workflow
@xerial xerial merged commit 6d25a37 into master Jul 19, 2025
8 checks passed
@xerial xerial deleted the migrate-to-sona-release branch July 19, 2025 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant