Skip to content

Fix lint-java job: Add Java 11 setup for googlejavaformat compatibility#787

Draft
Copilot wants to merge 2 commits intodevfrom
copilot/fix-lint-java-job
Draft

Fix lint-java job: Add Java 11 setup for googlejavaformat compatibility#787
Copilot wants to merge 2 commits intodevfrom
copilot/fix-lint-java-job

Conversation

Copy link

Copilot AI commented Feb 4, 2026

The axel-op/googlejavaformat-action@v3.6.0 requires Java 11, but ubuntu-latest runners now default to Java 17+, causing the lint-java job to fail.

Changes

  • Added JDK 11 setup step before googlejavaformat-action in the lint-java job
- name: Set up JDK 11
  uses: actions/setup-java@v3
  with:
    distribution: 'temurin'
    java-version: '11'
- uses: axel-op/googlejavaformat-action@fe78db8a90171b6a836449f8d0e982d5d71e5c5a #v3.6.0
  with:
    args: "--set-exit-if-changed"
Original prompt

The lint-java GitHub Actions job fails due to an incompatibility between the default Java version (typically Java 17+) on ubuntu-latest runners and the axel-op/googlejavaformat-action (v3.6.0), which is best supported on Java 11. To resolve the error, edit the 'lint-java' job in .github/workflows/test.yml to insert the following step prior to the googlejavaformat action:

- name: Set up JDK 11
  uses: actions/setup-java@v3
  with:
    distribution: 'temurin'
    java-version: '11'

This ensures the googlejavaformat action runs with Java 11 and the workflow linting step will function correctly.

Apply this change on the dev branch.

This pull request was created from Copilot chat.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: SeanDuggan <2421968+SeanDuggan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix lint-java job compatibility with Java version Fix lint-java job: Add Java 11 setup for googlejavaformat compatibility Feb 4, 2026
Copilot AI requested a review from SeanDuggan February 4, 2026 15:55
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