Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update spring core to v6 (major) #2644

Merged
merged 5 commits into from
Jan 6, 2023
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 16, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
org.springframework:spring-webmvc 5.3.24 -> 6.0.3 age adoption passing confidence
org.springframework:spring-web 5.3.24 -> 6.0.3 age adoption passing confidence
org.springframework:spring-test 5.3.24 -> 6.0.3 age adoption passing confidence
org.springframework:spring-context-support 5.3.24 -> 6.0.3 age adoption passing confidence

Release Notes

spring-projects/spring-framework

v6.0.3

Compare Source

⭐ New Features

  • Throw PessimisticLockingFailureException/CannotAcquireLockException instead of plain ConcurrencyFailureException #​29675
  • Introduce additional constructors in MockClientHttpRequest and MockClientHttpResponse #​29670
  • Fall back to JdkClientHttpConnector as ClientHttpConnector #​29645
  • Optimize object creation in RequestMappingHandlerMapping#handleNoMatch #​29634
  • Align multipart codecs on client and server #​29630
  • Deprecate "application/graphql+json" media type after spec changes #​29617
  • HTTP interface client does not call FormHttpMessageWriter when writing form data #​29615
  • ProblemDetail doesn't override the equals method #​29606
  • Add title to SockJS iFrames for accessibility compliance #​29594
  • Forbid loading of a test's ApplicationContext in AOT mode if AOT processing failed #​29579
  • Deprecate JettyWebSocketClient in favor of StandardWebSocketClient #​29576
  • Improve options to expose MessageSource formatted errors for a ProblemDetail response #​29574
  • Make @ModelAttribute and @InitBinder annotations @Reflective #​29572
  • Update BindingReflectionHintsRegistrar to support properties on records #​29571

🐞 Bug Fixes

  • Cannot use WebDAV methods in Spring MVC 6.0 anymore #​29689
  • AnnotatedElementUtils.findMergedRepeatableAnnotations does not fetch results when other attributes exist in container annotation #​29685
  • BeanWrapperImpl NPE in setWrappedInstance after invoking getPropertyValue #​29681
  • SpEL ConstructorReference does not generate AST representation of arrays #​29665
  • NullPointerException in BindingReflectionHintsRegistrar for anonymous classes #​29657
  • DataBufferInputStream violates InputStream contract #​29642
  • Component scanning no longer uses component index for @Named, @ManagedBean, and other Jakarta annotations #​29641
  • Fix canWrite in PartHttpMessageWriter #​29631
  • NoHandlerFoundException mistakenly returns request headers from ErrorResponse#getHeaders #​29626
  • URI override for @HttpExchange doesn't work if there are both URI and @PathVariable method parameters #​29624
  • Unnecessary parameter name introspection for constructor-arg resolution (leading to LocalVariableTableParameterNameDiscoverer warnings) #​29612
  • Set detail from reason in both constructors of ResponseStatusException #​29608
  • SpEL string literal misses single quotation marks in toStringAST() #​29604
  • AOT code generation fails for bean of type boolean #​29598
  • request-scoped bean with @Lazy fails in native image (due to missing detection of CGLIB lazy resolution proxies) #​29584
  • 500 error from WebFlux when parsing Content-Type leads to InvalidMediaTypeException #​29565
  • ConcurrentLruCache implementation is using too much heap memory #​29520
  • Duplicate key violation gets translated to DataIntegrityViolationException instead of DuplicateKeyException in Spring 6 #​29511
  • SpEL: Two double quotes are replaced by one double quote in single quoted String literal (and vice versa) #​28356

📔 Documentation

  • Fix ErrorResponse#type documentation #​29632
  • Fix typo in observability documentation #​29590
  • Consistent documentation references to Jakarta WebSocket (2.1) #​29581
  • Unrendered asciidoc headings in reference documentation #​29569
  • Document observability support #​29524

🔨 Dependency Upgrades

❤️ Contributors

Thank you to all the contributors who worked on this release:

@​Aashay-Chapatwala, @​CoderYellow, @​ShenFeng312, @​Spark61, @​divcon, @​izeye, @​koo-taejin, @​mdeinum, @​mhalbritter, @​quaff, and @​singhbaljit

v6.0.2

Compare Source

⭐ New Features
  • Rely on standard parameter name resolution in Bean Validation 3.0 #​29566
🐞 Bug Fixes
  • ResponseStatusException does not use the reason to set the "detail" field #​29567
  • LocalVariableTableParameterNameDiscoverer logs many warnings with Hibernate validation #​29563
📔 Documentation
  • org.springframework.web.multipart.commons not found #​29562

v6.0.1

Compare Source

⭐ New Features
  • Make SourceHttpMessageConverter optional #​29535
  • Deprecate LocalVariableTableParameterNameDiscoverer completely (avoiding its exposure in native images) #​29531
  • Make GeneratorStrategy.generate unreachable on native #​29521
  • Update LogAdapter to allow build-time code removal #​29506
🐞 Bug Fixes
  • Unhandled exceptions should mark Servlet observation outcome as error #​29512
📔 Documentation
  • Broken link in documentation section 6.10 #​29554
  • Fix Javadoc link text in BindingResult #​29551
  • Fix some typos in Kotlin WebClient example code #​29538
  • Fix link to Bean Utils Light Library in BeanUtils Javadoc #​29534
  • Fix link to WebFlux section in reference manual #​29525
  • Document RuntimeHints testing strategies #​29523
  • Reorganize and modularize the Testing chapter in the reference manual #​29522
  • Document switch to SQLExceptionSubclassTranslator in the upgrade guide #​29518
  • Update documentation to mention Java 17+ baseline #​29514
  • Link to Spring WebFlux section is broken #​29513
  • Update javadoc of Jackson-based decoders to reflect 2.14 baseline #​29508
  • Code example has callout from a different code example #​29505
  • Code listing callouts are displayed incorrectly in core-beans.adoc #​29457
  • Fix a syntax error in an XML listing in core-validation.adoc #​29456
🔨 Dependency Upgrades
❤️ Contributors

Thank you to all the contributors who worked on this release:

@​Encyclopedias, @​andregasser, @​davidcostanzo, @​divcon, @​jiangying000, @​mdeinum, and @​wilkinsona

v6.0.0

See What's New in Spring Framework 6.x and Upgrading to Spring Framework 6.x for upgrade instructions and details of new features.

⭐ New Features

  • Avoid direct URL construction and URL equality checks #​29486
  • Simplify creating RFC 7807 responses from functional endpoints #​29462
  • Allow test classes to provide runtime hints via declarative mechanisms #​29455

📔 Documentation

  • Align javadoc of DefaultParameterNameDiscoverer with its behavior #​29494
  • Document AOT support in the TestContext framework #​29482
  • Document Ahead of Time processing in the reference guide #​29350

🔨 Dependency Upgrades

❤️ Contributors

Thank you to all the contributors who worked on this release:

@​ophiuhus and @​wilkinsona


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the 🤖 dependencies Dependency upgrade label Nov 16, 2022
@mpkorstanje
Copy link
Contributor

Looks like we'll need to run the tests on Java 17 for this and also a refactor.

I reckon this can wait until Spring Boot for Spring 6 is released.

@renovate
Copy link
Contributor Author

renovate bot commented Nov 16, 2022

Renovate Ignore Notification

As this PR has been closed unmerged, Renovate will ignore this upgrade and you will not receive PRs for any future 6.x releases. However, if you upgrade to 6.x manually then Renovate will reenable minor and patch updates automatically.

If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.

@renovate renovate bot deleted the renovate/major-spring-core branch November 16, 2022 21:43
@mpkorstanje mpkorstanje restored the renovate/major-spring-core branch November 27, 2022 12:34
@mpkorstanje mpkorstanje reopened this Nov 27, 2022
@renovate renovate bot force-pushed the renovate/major-spring-core branch from 9c72137 to 20f0562 Compare November 27, 2022 12:35
@mpkorstanje
Copy link
Contributor

Spring Boot 3.0.0 is here.

@mpkorstanje mpkorstanje self-assigned this Nov 27, 2022
@mpkorstanje mpkorstanje marked this pull request as draft November 27, 2022 18:57
@renovate
Copy link
Contributor Author

renovate bot commented Nov 28, 2022

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.

@mpkorstanje mpkorstanje force-pushed the renovate/major-spring-core branch from 3e94f01 to 27af4a1 Compare January 6, 2023 12:24
@codecov
Copy link

codecov bot commented Jan 6, 2023

Codecov Report

Merging #2644 (6cdeb3f) into main (e835417) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #2644   +/-   ##
=========================================
  Coverage     84.67%   84.67%           
  Complexity     2679     2679           
=========================================
  Files           322      322           
  Lines          9444     9444           
  Branches        899      899           
=========================================
  Hits           7997     7997           
  Misses         1120     1120           
  Partials        327      327           
Impacted Files Coverage Δ
.../cucumber/examples/spring/application/Message.java 75.00% <ø> (ø)
.../io/cucumber/examples/spring/application/User.java 100.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@mpkorstanje mpkorstanje force-pushed the renovate/major-spring-core branch from 01ea34e to 5811e4e Compare January 6, 2023 15:50
@mpkorstanje mpkorstanje force-pushed the renovate/major-spring-core branch from 5811e4e to a399326 Compare January 6, 2023 15:52
@renovate renovate bot force-pushed the renovate/major-spring-core branch from a399326 to 2273d15 Compare January 6, 2023 15:53
@mpkorstanje mpkorstanje marked this pull request as ready for review January 6, 2023 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 dependencies Dependency upgrade
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant