Skip to content

Fix jbang-example.java to use actual version instead of Maven placeholder#63

Open
brunoborges wants to merge 2 commits intomainfrom
fix/jbang-version-placeholder
Open

Fix jbang-example.java to use actual version instead of Maven placeholder#63
brunoborges wants to merge 2 commits intomainfrom
fix/jbang-version-placeholder

Conversation

@brunoborges
Copy link
Copy Markdown
Collaborator

Summary

Replace ${project.version} with a real version number in jbang-example.java. The Maven placeholder was never resolved for this file since it's not processed by Maven's resource filtering (it lives at the repo root, not under src/site/markdown/).

Changes

  • jbang-example.java: Replaced ${project.version} with 0.2.2-java.1 (latest release)
  • .github/workflows/publish-maven.yml: Added a fallback sed pattern to match and replace the ${project.version} literal during the transition, so future releases will correctly update the version

Testing

  • Ran DocumentationSamplesTest — passes successfully

…lder

Replace ${project.version} with a real version number (0.2.2-java.1) in
jbang-example.java since this file is not Maven-filtered. Also add a
fallback sed pattern in the release workflow to handle the placeholder
during the transition.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the JBang example to use a concrete released SDK version (since ${project.version} is not Maven-filtered at repo root) and adjusts the release workflow so future releases still rewrite the dependency version correctly.

Changes:

  • Replaced the unresolved Maven placeholder in jbang-example.java with 0.2.2-java.1.
  • Updated publish-maven.yml to also rewrite the literal ${project.version} form when bumping versions during release.
Show a summary per file
File Description
jbang-example.java Pins the JBang //DEPS line to a real released version.
.github/workflows/publish-maven.yml Adds an extra sed replacement intended to handle ${project.version} in jbang-example.java during releases.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 1

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

2 participants