Skip to content

Conversation

@callummiles
Copy link
Owner

Prepare for Spring Boot 2.7 migration: Update Maven plugins and Groovy/Spock

Summary

This PR implements the first three preparatory steps for the Spring Boot 2.7 migration:

Step 2 - Maven Plugin Updates:

  • maven-surefire-plugin: 2.20 → 2.22.2
  • maven-failsafe-plugin: 2.22.1 → 2.22.2
  • jacoco-maven-plugin: 0.8.3 → 0.8.10

Step 3 - Groovy and Spock Updates:

  • Added groovy.version property: 3.0.19
  • Updated Groovy dependency to explicitly use ${groovy.version}
  • spock-spring: 1.2-groovy-2.5 → 2.3-groovy-3.0
  • spock-core: 1.2-groovy-2.5 → 2.3-groovy-3.0
  • gmavenplus-plugin: 1.6.2 → 2.1.0

These updates prepare the build toolchain and test framework for Spring Boot 2.7 compatibility. The Spring Boot parent version remains at 2.2.0.M6 and will be updated in a subsequent PR.

Review & Testing Checklist for Human

⚠️ Important: Local testing was blocked by a Java version mismatch (Java 21 installed vs Java 11 required), so these changes rely on CI validation.

  • Verify all 111 tests pass (89 unit + 22 integration tests) - CI should show green
  • Check for Groovy 3.0 compatibility issues - The upgrade from Groovy 2.5 to 3.0 is a major version jump that could affect the 82 Groovy test files
  • Verify application starts successfully - Run mvn spring-boot:run and confirm the app starts on port 8080 with H2 console accessible at /h2-console

Recommended Test Plan

  1. Run mvn clean verify to execute the full test suite
  2. Start the application with mvn spring-boot:run
  3. Access http://localhost:8080/actuator/health and http://localhost:8080/h2-console to verify the app is running
  4. Review any warnings or deprecation notices in the build output

Notes

  • This PR only updates dependencies and build plugins in pom.xml - no application code changes
  • These are preparatory steps; the actual Spring Boot version upgrade will come in a later PR
  • The Groovy/Spock version jumps are significant (Groovy 2.5→3.0, Spock 1.2→2.3) so watch for compatibility issues

Link to Devin run: https://app.devin.ai/sessions/af9436b432594e5895e81a22ce26ece5
Requested by: Callum Miles (@callummiles)

- Update maven-surefire-plugin: 2.20 → 2.22.2
- Update maven-failsafe-plugin: 2.22.1 → 2.22.2
- Update jacoco-maven-plugin: 0.8.3 → 0.8.10
- Add groovy.version property: 3.0.19
- Update Groovy dependency to use ${groovy.version}
- Update spock-spring: 1.2-groovy-2.5 → 2.3-groovy-3.0
- Update spock-core: 1.2-groovy-2.5 → 2.3-groovy-3.0
- Update gmavenplus-plugin: 1.6.2 → 2.1.0

These updates prepare the project for Spring Boot 2.7 migration.
Spring Boot parent version remains at 2.2.0.M6 as planned.

Co-Authored-By: Callum Miles <cwmiles18@gmail.com>
@devin-ai-integration
Copy link

🤖 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.

2 participants