Skip to content

Update build.gradle Java version to 17 and Gradle wrapper to 7.6.1#551

Open
devin-ai-integration[bot] wants to merge 1 commit intomasterfrom
devin/1776281993-java17-gradle-upgrade
Open

Update build.gradle Java version to 17 and Gradle wrapper to 7.6.1#551
devin-ai-integration[bot] wants to merge 1 commit intomasterfrom
devin/1776281993-java17-gradle-upgrade

Conversation

@devin-ai-integration
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot commented Apr 15, 2026

Summary

Updates the project's Java source/target compatibility from 11 to 17 and upgrades the Gradle wrapper from 7.4 to 7.6.1 (which has full Java 17 support).

Changes:

  • build.gradle: sourceCompatibility and targetCompatibility changed from '11' to '17'
  • Gradle wrapper upgraded from 7.4 → 7.6.1 via ./gradlew wrapper --gradle-version=7.6.1 (run twice per Gradle docs to update the wrapper itself)
  • gradlew, gradlew.bat, gradle-wrapper.jar, and gradle-wrapper.properties are all auto-generated by the wrapper upgrade — no manual edits

No dependency versions were changed — that is being handled in a separate session.

Build status: ./gradlew compileJava succeeds. ./gradlew build fails on the spotlessJava task because the current version of com.diffplug.spotless / Google Java Format uses JDK internals (com.sun.tools.javac.parser) that Java 17's module system blocks. This is a pre-existing dependency compatibility issue, not caused by this PR.

Review & Testing Checklist for Human

  • Verify that only sourceCompatibility, targetCompatibility, and wrapper version changed in build.gradle — no dependency versions were modified
  • Confirm Java 17 is the correct target for your deployment/CI environment
  • Note: ./gradlew build will fail on spotlessJava until the Spotless plugin is upgraded (separate effort) — Java compilation itself works fine

Notes

  • The gradlew/gradlew.bat diffs look large but are entirely auto-generated by Gradle 7.6.1's wrapper task (improved POSIX compliance, better quoting, etc.)
  • A follow-up PR upgrading the Spotless plugin version will be needed to restore ./gradlew build passing end-to-end

Link to Devin session: https://app.devin.ai/sessions/7317925a7b4e4fc384fb541dd6522c47
Requested by: @shayanshafii


Open with Devin

- Change sourceCompatibility from 11 to 17
- Change targetCompatibility from 11 to 17
- Upgrade Gradle wrapper from 7.4 to 7.6.1

Co-Authored-By: shayan <shayan@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 and CI monitoring

Copy link
Copy Markdown
Author

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

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 potential bugs to report.

View in Devin Review to see 2 additional findings.

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.

1 participant