Skip to content

fix: use inline x-release-please-version annotation#76

Merged
TheMeinerLP merged 1 commit into
mainfrom
fix/release-please-version-annotation
Jul 13, 2026
Merged

fix: use inline x-release-please-version annotation#76
TheMeinerLP merged 1 commit into
mainfrom
fix/release-please-version-annotation

Conversation

@TheMeinerLP

Copy link
Copy Markdown
Owner

Summary

  • The generic extra-files updater needs the x-release-please-version annotation as a trailing inline comment on the version line itself, not a leading comment above it — confirmed against OneLiteFeatherNET/PlayerKits' actually-working config.
  • The leading-comment form (introduced in chore: migrate release automation from semantic-release to release-please #74) silently didn't bump gradle.properties in the currently open release PR (chore(main): release 1.4.8 #75), which is stuck at 1.4.7 while the manifest/tag moved to 1.4.8.
  • Java .properties syntax only treats # as a comment marker at the start of a line, so once moved inline the annotation becomes part of the raw version string ("1.4.7 # x-release-please-version"). Strips it back off in build.gradle.kts before Gradle uses the version anywhere — same substringBefore('#') pattern PlayerKits uses.

Test plan

  • ./gradlew compileJava passes
  • ./gradlew clean shadowJar produces BlueMapS3Storage-1.4.7.jar (clean version string, no trailing comment leaking into the filename)
  • After merge, confirm the open release PR (chore(main): release 1.4.8 #75) picks up the fix and correctly shows gradle.properties bumped to 1.4.8

The generic extra-files updater needs the annotation as a trailing
inline comment on the version line itself, not a leading comment
above it — confirmed against OneLiteFeatherNET/PlayerKits' actually-
working config. The leading-comment form silently didn't bump
gradle.properties in the open release PR (#75, stuck at 1.4.7 while
the manifest/tag moved to 1.4.8).

Java .properties syntax only treats '#' as a comment marker at the
start of a line, so the inline annotation becomes part of the raw
version string ("1.4.7 # x-release-please-version"). Strip it back
off in build.gradle.kts before Gradle uses the version anywhere,
same substringBefore('#') pattern PlayerKits uses.
@TheMeinerLP
TheMeinerLP merged commit b98258e into main Jul 13, 2026
4 checks passed
@TheMeinerLP
TheMeinerLP deleted the fix/release-please-version-annotation branch July 13, 2026 19:58
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