Skip to content

Upgrade Java toolchain from 11 to 18 - #1023

Open
devin-ai-integration[bot] wants to merge 1 commit into
masterfrom
devin/1787584850-java18-upgrade
Open

devin-ai-integration[bot] wants to merge 1 commit into
masterfrom
devin/1787584850-java18-upgrade

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Aug 24, 2026

Copy link
Copy Markdown

Summary

Moves the project to Java 18: source/targetCompatibility = '18', Gradle wrapper 7.4 → 7.6.4 (7.4 does not support Java 18), README updated.

Two things beyond the mechanical version bumps:

  • Spotless 6.2.1 crashes under JDK 18 (IllegalAccessError: ... cannot access com.sun.tools.javac.parser.Tokens$TokenKind ... jdk.compiler does not export com.sun.tools.javac.parser). Bumped to 6.25.0, which runs google-java-format with the required --add-exports. No Lombok / Spring Boot / DGS bumps were needed — clean build and all 68 tests pass as-is on JDK 18.
  • spotlessCheck had a pre-existing violation in DefaultJwtServiceTest (also fails on master under Java 11; CI only ran clean test, which skips check). Applied the one-line reformat so clean build is green.
  • .github/workflows/gradle.yml did not exist — it was deleted in 4b920b0 ("Remove GitHub Actions CI workflow"). Restored it from that commit with Set up JDK 18 / java-version: '18'.

Verified locally on OpenJDK 18.0.2: ./gradlew clean build (68 tests, 0 failures) and ./gradlew bootRuncurl localhost:8080/tags returns {"tags":[]}.

Devin-Org: engineering

Link to Devin session: https://app.devin.ai/sessions/8f735c62b2d243219999bdba32bcd4fc
Requested by: @safwan-cognition


Note

Devin errored when opening this Pull Request as safwan-cognition.
As a fallback, Devin opened this PR as itself.


Devin Review

Status Commit
⚪ Not started

Run Devin Review

Devin Review (Staging)
Open in Devin Review

Bump source/target compatibility to 18, Gradle wrapper to 7.6.4, Spotless to 6.25.0, and restore CI workflow on JDK 18.

Co-Authored-By: Safwan Masood <safwan.masood@cognition.ai>
@devin-ai-integration

Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

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.

0 participants