Fix jar file naming when branch contains slashes by andimarek · Pull Request #4290 · graphql-java/graphql-java · GitHub
Skip to content

Fix jar file naming when branch contains slashes#4290

Merged
andimarek merged 1 commit intomasterfrom
claude/fix-jar-branch-naming-EltG5
Mar 4, 2026
Merged

Fix jar file naming when branch contains slashes#4290
andimarek merged 1 commit intomasterfrom
claude/fix-jar-branch-naming-EltG5

Conversation

@andimarek
Copy link
Copy Markdown
Member

Summary

  • Branch names containing / (e.g. feature/my-change) are used directly in the development version string, producing jar file names like graphql-java-0.0.0-feature/my-change-SNAPSHOT.jar
  • The / in the file name breaks file paths and build tooling
  • Fixed by replacing / and \ characters in the branch name with - before constructing the version string

Test plan

  • Check out a branch with / in the name (e.g. feature/test) and run ./gradlew jar — the jar file should have - instead of / in its name
  • Verify normal branch names (no slashes) are unaffected

https://claude.ai/code/session_016vUi9axZU9DGXryxPWiwwT

Branch names like `feature/my-change` produce a version string with `/`
characters (e.g. `0.0.0-feature/my-change-SNAPSHOT`), which breaks the
jar file path. Replace `/` and `\` in the branch name with `-` so the
resulting jar file name is always valid.

https://claude.ai/code/session_016vUi9axZU9DGXryxPWiwwT
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 4, 2026

@andimarek andimarek merged commit 5b63591 into master Mar 4, 2026
9 checks passed
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