Skip to content

Fix Spring Boot 4.0.2 upgrade compilation failures - #94

Draft
ato with Copilot wants to merge 6 commits into
dependabot/maven/spring.version-4.0.2from
copilot/sub-pr-92
Draft

Fix Spring Boot 4.0.2 upgrade compilation failures#94
ato with Copilot wants to merge 6 commits into
dependabot/maven/spring.version-4.0.2from
copilot/sub-pr-92

Conversation

Copilot AI commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

Spring Boot 4 removed dependency management for spring-retry and reorganized packages due to modularization. The project failed to compile with multiple missing class and API incompatibility errors.

Dependency Management

  • Added explicit spring-retry:2.0.12 version to parent pom (no longer managed by Spring Boot BOM)

Package Migrations (Spring Boot 4 Modularization)

  • HibernatePropertiesCustomizer: o.s.b.autoconfigure.orm.jpao.s.b.hibernate.autoconfigure
  • EntityManagerFactoryDependsOnPostProcessor: o.s.b.autoconfigure.orm.jpao.s.b.jpa.autoconfigure
  • Health/HealthIndicator: o.s.b.actuate.healtho.s.b.health.contributor
  • Removed ElasticsearchRestClientAutoConfiguration exclusion (class removed)
  • Removed OAuth2ClientProperties usage (class removed)

Hibernate 7.2 API Changes

  • BlobProxy: o.h.engine.jdbco.h.engine.jdbc.proxy
  • JdbcOperationQuerySelectJdbcSelect interface

Spring Security 7 Lambda-Based Configuration

Migrated from deprecated .and() chaining to lambda-based API:

// Before (Spring Security 6)
http.csrf().disable()
    .authorizeHttpRequests().anyRequest().permitAll()
    .and().formLogin().defaultSuccessUrl("/");

// After (Spring Security 7)
http.csrf(csrf -> csrf.disable())
    .authorizeHttpRequests(auth -> auth.anyRequest().permitAll())
    .formLogin(form -> form.defaultSuccessUrl("/"));

Additional changes:

  • AntPathRequestMatcherPathPatternRequestMatcher.pathPattern()
  • DaoAuthenticationProvider constructor now requires UserDetailsService parameter
  • authorizeExchange(), oauth2Client(), securityContext() all require lambda parameters

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 5 commits February 10, 2026 12:02
Co-authored-by: ato <10588+ato@users.noreply.github.com>
… 4 package imports

Co-authored-by: ato <10588+ato@users.noreply.github.com>
Co-authored-by: ato <10588+ato@users.noreply.github.com>
… modules

Co-authored-by: ato <10588+ato@users.noreply.github.com>
…tion

Co-authored-by: ato <10588+ato@users.noreply.github.com>

Copilot AI commented Feb 10, 2026

Copy link
Copy Markdown
Contributor Author

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • central.sonatype.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)
  • docs.spring.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Update spring.version to 4.0.2 from 3.5.6 Fix Spring Boot 4.0.2 upgrade compilation failures Feb 10, 2026
Copilot AI requested a review from ato February 10, 2026 12:17
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