Skip to content

Java 21 migration — Gradle build config#19

Merged
devin-ai-integration[bot] merged 1 commit into
devin/1777913688-java21-migration-basefrom
devin/1777913850-java21-gradle-config
May 4, 2026
Merged

Java 21 migration — Gradle build config#19
devin-ai-integration[bot] merged 1 commit into
devin/1777913688-java21-migration-basefrom
devin/1777913850-java21-gradle-config

Conversation

@devin-ai-integration
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot commented May 4, 2026

Summary

Updates the Gradle build configuration to support the Java 8 → Java 21 / Spring Boot 2.0.2 → 3.2.5 migration. This PR is scoped to Gradle build config only — pom.xml, the Maven wrapper, and .java sources are owned by sibling PRs.

Changes:

  • build.gradle
    • Bump org.springframework.boot:spring-boot-gradle-plugin from 2.0.2.RELEASE to 3.2.5.
    • Bump sourceCompatibility and targetCompatibility from 1.8 to 21.
    • Replace deprecated compile(...) with implementation(...) and testCompile(...) with testImplementation(...).
    • Rename bootJar { baseName / version } to bootJar { archiveBaseName / archiveVersion } (required by modern Gradle).
  • gradle/wrapper/gradle-wrapper.properties
    • Bump distributionUrl from gradle-4.6-bin.zip to gradle-8.7-bin.zip (Gradle 8.5+ is required for Java 21).

Review & Testing Checklist for Human

  • Verify the integration PR (combining this PR with the Maven-config and Java-source migration PRs) builds successfully against Java 21 with ./gradlew build.
  • Confirm ./gradlew bootJar still produces an artifact named gs-spring-boot-0.1.0.jar after the archiveBaseName / archiveVersion rename.
  • Sanity-check that no other Gradle build files exist in the repo that also reference compile/testCompile or the old plugin version.

Notes

  • This PR alone will not produce a working build — it must be merged together with the sibling PRs (Maven build config, Java source updates) on top of devin/1777913688-java21-migration-base.
  • Per the task spec, no lint/test was run in this child session; CI on the integration PR is the source of truth.

Link to Devin session: https://app.devin.ai/sessions/af6995a13ace421a845a182fbdc7759e
Requested by: @dr-phil


Devin Review

Status Commit
⚪ Not started

Run Devin Review

💡 Connect your GitHub account to enable automatic code reviews.

Open in Devin Review (Staging)
Open in Devin Review

- Bump spring-boot-gradle-plugin from 2.0.2.RELEASE to 3.2.5
- Set source/target compatibility to 21
- Replace deprecated compile/testCompile with implementation/testImplementation
- Rename bootJar baseName/version to archiveBaseName/archiveVersion
- Bump Gradle wrapper from 4.6 to 8.7 (required for Java 21)

Co-Authored-By: Phil Bedford <phil.bedford@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 4 additional findings.

Open in Devin Review

@devin-ai-integration devin-ai-integration Bot merged commit 396bb0c into devin/1777913688-java21-migration-base May 4, 2026
1 check 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.

1 participant