nrknithin opened a new pull request, #3221: URL: https://github.com/apache/incubator-kie-optaplanner/pull/3221
### Summary Upgrade `optaplanner-spring-integration` (autoconfigure + starter) from Spring Boot 3.5.12 to 4.0.5 and Spring Framework 6.2.17 to 7.0.6. ### What changed `build/optaplanner-build-parent/pom.xml` - version.org.springframework.boot `3.5.12` → `4.0.5` - version.org.springframework `6.2.17` → `7.0.6` - version.ch.qos.logback `1.5.25` → `1.5.32` (matches SB 4.0.x line) - Added `spring-boot-persistence` to dependencyManagement (new module in SB 4.0; see entity-scan import migration below) - Maven Enforcer bannedDependencies updated: added <include>commons-logging:commons-logging:*:*:compile</include> to allow commons-logging from Spring Framework 7.x `optaplanner-spring-integration/optaplanner-spring-boot-autoconfigure/pom.xml` - Added spring-boot-persistence dependency (needed for EntityScan in SB 4.0) - Java imports — EntityScan/EntityScanPackages/EntityScanner moved package OptaPlannerAutoConfiguration.java ChainedSpringTestConfiguration.java GizmoSpringTestConfiguration.java MultiModuleSpringTestConfiguration.java NoConstraintsSpringTestConfiguration.java - Imports changed from `org.springframework.boot.autoconfigure.domain.*` → `org.springframework.boot.persistence.autoconfigure.*` . ### Why - Spring Boot 4.0 extracted persistence-related auto-configuration into a new spring-boot-persistence module and moved EntityScan/EntityScanPackages/EntityScanner to org.springframework.boot.persistence.autoconfigure. The old package no longer exists in SB 4.0, so any code using @EntityScan must update its imports and the new module must be on the classpath. - Spring Framework 7.x reverted to depending on commons-logging directly (architectural change from Spring 6.x's spring-jcl bridge). The enforcer rule that bans commons-logging:commons-logging had to allow it specifically when it comes from Spring Framework 7.x. Verified with a full `mvn clean install` (all modules pass — including 5 Spring autoconfigure test configurations and Quarkus integration tests). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
