Skip to content

Conversation

@adityamparikh
Copy link
Contributor

Summary

  • Create a reusable composite action (.github/actions/setup-java) to centralize Java version configuration
  • Update all workflows to use the composite action instead of inline setup-java steps
  • Eliminate duplicate env: variables and chmod +x gradlew steps across workflows

Changes

  • New file: .github/actions/setup-java/action.yml - Composite action with Java 25 + Temurin + Gradle cache
  • Updated workflows:
    • build-and-publish.yml
    • release-publish.yml
    • nightly-build.yml
    • atr-release.yml
    • atr-release-test.yml

Benefits

  • Single-point updates: To change Java version, modify only .github/actions/setup-java/action.yml
  • Reduced duplication: Eliminates repeated JAVA_VERSION, JAVA_DISTRIBUTION env vars
  • Consistent setup: All workflows now use identical Java configuration
  • Cleaner workflows: Removed redundant chmod +x gradlew steps (now in composite action)

Test plan

  • Verify build-and-publish workflow runs successfully
  • Verify composite action properly sets up Java 25 with Temurin
  • Verify Gradle caching still works

🤖 Generated with Claude Code

Create a reusable composite action (.github/actions/setup-java) to
centralize Java version configuration across all workflows. This
eliminates duplication and makes future Java version updates
single-point changes.

Changes:
- Add .github/actions/setup-java/action.yml with Java 25 + Temurin
- Update build-and-publish.yml to use composite action
- Update release-publish.yml to use composite action
- Update nightly-build.yml to use composite action
- Update atr-release.yml to use composite action
- Update atr-release-test.yml to use composite action
- Remove redundant env variables (JAVA_VERSION, JAVA_DISTRIBUTION)
- Remove duplicate chmod +x gradlew steps (now in composite action)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.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.

1 participant