Upgrade Spring Boot to 2.7.18 and enable Java 17 compatibility
Fixes #58
This PR upgrades the project from Spring Boot 1.5.2.RELEASE to 2.7.18 and updates the Java target version to 17.
Reason: Spring Boot 1.5.x and Spring Framework 4.x rely on reflection mechanisms that fail on Java 11+ due to the module system, causing: java.lang.reflect.InaccessibleObjectException
Upgrading to Spring Boot 2.7.18 (Spring Framework 5.3.x) removes this problem and provides full Java 17 compatibility without requiring --add-opens JVM flags.
Changes:
- Updated spring-boot-starter-parent to 2.7.18
- Set java.version to 17
- Added spring-boot-starter-web (project uses Spring MVC)
Verification:
- mvn clean install -DskipTests "-Dskip.npm=true"
- mvn spring-boot:run "-Dskip.npm=true"
Build and application start successfully on Java 21 compiling to Java 17. Note: Some integration tests require external DBpedia services and may fail locally; therefore verification was done using -DskipTests
Summary by CodeRabbit
- Chores
- Updated Java runtime requirement from Java 8 to Java 17
- Upgraded Spring Boot framework to version 2.7.18 for improved stability, security, and long-term support
- Enhanced web framework capabilities
The project's Maven configuration has been updated to upgrade Spring Boot from version 1.5.2.RELEASE to 2.7.18, add the spring-boot-starter-web dependency, and update the Java compiler version target from 1.8 to 17. 🎯 2 (Simple) | ⏱️ ~12 minutes ✏️ Tip: You can configure your own custom pre-merge checks in the settings.📝 Walkthrough
Walkthrough
Changes
Cohort / File(s)
Summary
Spring Boot & Java Version Upgrade
pom.xmlParent Spring Boot version updated from 1.5.2.RELEASE to 2.7.18; Java version property changed from 1.8 to 17; spring-boot-starter-web dependency added.
Estimated code review effort
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name
Status
Explanation
Description Check
✅ Passed
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
✅ Passed
The title accurately describes the main changes: upgrading Spring Boot to 2.7.18 and setting Java version to 17 compatibility, which aligns with the PR's primary objectives.
Docstring Coverage
✅ Passed
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands and usage tips.