Skip to content

Replace unmaintained semantic-build-versioning with Reckon#255

Merged
ogolberg merged 6 commits intomainfrom
reckon-versioning
May 1, 2026
Merged

Replace unmaintained semantic-build-versioning with Reckon#255
ogolberg merged 6 commits intomainfrom
reckon-versioning

Conversation

@ogolberg
Copy link
Copy Markdown
Member

@ogolberg ogolberg commented May 1, 2026

Summary

  • gradle-semantic-build-versioning is no longer maintained and will break on upcoming Gradle versions. Replace it with org.ajoberstar.reckon.settings 2.0.0 (actively maintained, Gradle 9 compatible, requires Java 17 — already satisfied by CI's corretto 17).
  • Preserves existing version semantics: dev builds resolve to X.Y.Z-SNAPSHOT, tag pushes resolve to a clean X.Y.Z. isRelease() in buildSrc/src/main/kotlin/Common.kt continues to key off the -SNAPSHOT suffix without changes.
  • Releasing is unchanged from the CI operator's perspective: push a tag, the release workflow runs. Reckon picks up the tag as the version automatically — no property flags needed.
  • Updated ExpediterIntegrationTest to derive the lib2 jar filename from the classpath it's already passed. Reckon's settings plugin sets version on every subproject (the old plugin only set it on root), which changes lib2's jar filename from lib2-test-fixtures.jar to lib2-X.Y.Z-SNAPSHOT-test-fixtures.jar. Reading the filename from the test-classpath system property keeps the assertion accurate without hardcoding a version.
  • Dropped the empty semantic-build-versioning.gradle config file.

ogolberg added 6 commits May 1, 2026 09:45
gradle-semantic-build-versioning is no longer maintained and won't work
with upcoming Gradle versions. Switch to org.ajoberstar.reckon.settings,
which preserves the "X.Y.Z-SNAPSHOT on dev, X.Y.Z on tag" behavior that
publishing-conventions relies on via isRelease(). Releases now pass
-Preckon.stage=final when publishing from a tag instead of -Prelease.

Generated with Claude Code
Reckon's settings plugin applies the inferred version to every project;
the old plugin only set rootProject.version. That caused non-published
subprojects like tests:lib2 to produce jars with a version suffix
(lib2-0.2.1-SNAPSHOT-test-fixtures.jar), breaking an integration test
that asserts on the jar filename. Published modules re-assign version
in publishing-conventions, so resetting subprojects preserves the
previous behavior without touching publishing.

Generated with Claude Code
The release workflow only runs on tag push, and Reckon infers the tag's
version as-is when HEAD is on a tag. The stage property is only needed
to promote a non-tagged commit, which this workflow never does.

Generated with Claude Code
Latest release on Maven Central. Only breaking change is the Java 17
minimum (JGit 7 upgrade), which CI already satisfies via corretto 17.

Generated with Claude Code
Reckon's settings plugin sets version on every project, which makes
tests:lib2 produce a versioned jar (lib2-X.Y.Z-SNAPSHOT-test-fixtures.jar)
instead of the old lib2-test-fixtures.jar. Rather than force subprojects
back to an unspecified version, extract the jar's filename from the
test-classpath system property — the test already gets that classpath
from Gradle, so it's the source of truth for whatever filename Gradle
produced.

Generated with Claude Code
@ogolberg ogolberg merged commit bbaa079 into main May 1, 2026
1 check passed
@ogolberg ogolberg deleted the reckon-versioning branch May 1, 2026 18:26
@codecov
Copy link
Copy Markdown

codecov Bot commented May 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (fb731dc) to head (e0177e2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##               main   #255       +/-   ##
===========================================
- Coverage     90.94%      0   -90.95%     
===========================================
  Files            44      0       -44     
  Lines          1137      0     -1137     
  Branches        157      0      -157     
===========================================
- Hits           1034      0     -1034     
+ Misses           52      0       -52     
+ Partials         51      0       -51     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

ogolberg added a commit to open-toast/gummy-bears that referenced this pull request May 6, 2026
## Summary
- Swaps the abandoned `gradle-semantic-build-versioning` plugin for
`org.ajoberstar.reckon.settings` 2.0.0, mirroring the migration done in
open-toast/expediter#255.
- Deletes the now-unused empty `semantic-build-versioning.gradle` config
file.

## Test plan
- [x] Build resolves a SNAPSHOT version off an untagged HEAD (verified
locally: `99.99.100-SNAPSHOT` after temporary `99.99.99` tag on prior
commit).
- [x] Build resolves the exact tag as a release version when HEAD is
annotated-tagged (verified locally: `99.99.99` across two runs with a
temporary annotated tag on the branch HEAD; tag deleted afterward).
- [ ] CI `Build` workflow passes on this PR.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant