Skip to content

Conversation

@devin-ai-integration
Copy link

JIRA Ticket

EB-3: Fix Maven compiler plugin configuration for Java 17 in COG-GTM/Springboot-BankApp

Overview

This PR fixes a Java version mismatch in the Maven compiler plugin configuration. The project's java.version property was correctly set to 17, but the Maven compiler plugin was still configured for Java 1.8, creating build configuration inconsistencies.

Changes Made

  • Removed explicit plugin version: Removed <version>3.8.0</version> to leverage Spring Boot's dependency management (now uses 3.13.0)
  • Updated compilation target: Replaced <source>1.8</source> and <target>1.8</target> with <release>17</release>
  • Modern configuration approach: Using the <release> element which is the recommended approach for Java 9+ projects

Rationale

The <release> configuration element provides better compatibility than separate source/target settings because it:

  • Ensures the compiler uses the correct Java 17 API
  • Prevents accidental use of APIs not available in the target release
  • Aligns with modern Java toolchain best practices

Verification

Build succeeds with the new configuration:

[INFO] Compiling 8 source files with javac [debug parameters release 17] to target/classes
[INFO] BUILD SUCCESS

The compiler now correctly uses Java 17 for both source and target, matching the project's runtime environment (OpenJDK 17 in Docker) and Spring Boot 3.3.3 requirements.

Context

  • Part of Java 17 migration effort (Epic EB-1)
  • Project already uses Jakarta EE APIs (requires Java 17+)
  • Runtime environment already configured for Java 17
  • No code changes required, only build configuration alignment

Link to Devin run: https://app.devin.ai/sessions/a9449a0118cf4a8399ff9c577cfa032b

Requested by: Alex Peng (alex.peng@windsurf.com) (@alexjpeng)

- Remove explicit version 3.8.0 to use Spring Boot managed version
- Replace source/target 1.8 with release 17 configuration
- Aligns compiler configuration with java.version property
- Enables proper Java 17 compilation and language features

JIRA: EB-3
Co-Authored-By: Alex Peng <alexander.j.peng@gmail.com>
@devin-ai-integration
Copy link
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

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