Moritz Halbritter
f8ce17c751
Add nullability annotations to tests in module/spring-boot-cache
...
See gh-47263
2025-10-02 15:35:04 +02:00
Moritz Halbritter
4a30228978
Add nullability annotations to tests in module/spring-boot-batch
...
See gh-47263
2025-10-02 15:35:04 +02:00
Moritz Halbritter
f3df45ace1
Add nullability annotations to tests in module/spring-boot-artemis
...
See gh-47263
2025-10-02 15:35:04 +02:00
Moritz Halbritter
3aaf4b7b0a
Add nullability annotations to tests in module/spring-boot-amqp
...
See gh-47263
2025-10-02 15:35:04 +02:00
Moritz Halbritter
4af0d6d747
Add nullability annotations to tests in module/spring-boot-actuator-autoconfigure
...
See gh-47263
2025-10-02 15:35:04 +02:00
Moritz Halbritter
3c3726b89e
Improve null-safety of module/spring-boot-actuator-autoconfigure
...
See gh-47263
2025-10-02 15:35:03 +02:00
Brian Clozel
92ee73df30
Deprecate HttpMessageConverters for Framework's
...
Prior to this commit, Spring Boot had an `HttpMessageConverters` class
that allowed, to configure message converter instances for MVC server
applications and traditional Spring HTTP clients.
As of Spring Framework 7.0, Framework ships its own
`HttpMessageConverters` class, aligning with the existing codecs
configuration on the WebFlux side. As a result, a few methods taking
`List<HttpMessageConverter>` as arguments were deprecated in favor of
the new arrangement.
This commit adapts to the Framework changes by deprecating Boot's
`HttpMessageConverters` in favor of Framework's. This splits the client
and server configuration as they are meant to be managed separately.
Applications can still contribute `HttpMessageConverters` (Boot's
variant) beans but the type itself is now deprecated.
Instead, applications should now contribute
`ClientHttpMessageConvertersCustomizer` and
`ServerHttpMessageConvertersCustomizer` beans to customize message
converters.
Closes gh-46411
2025-10-02 15:22:13 +02:00
Moritz Halbritter
418e057afc
Add nullability annotations to tests in core/spring-boot
...
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run
Details
Build and Deploy Snapshot / Trigger Docs Build (push) Blocked by required conditions
Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:24], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:24], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:17], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:17], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:21], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:21], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:25], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:25], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
Run CodeQL Analysis / run-analysis (push) Waiting to run
Details
Run System Tests / Java ${{ matrix.java.version}} (map[toolchain:true version:17]) (push) Waiting to run
Details
Run System Tests / Java ${{ matrix.java.version}} (map[toolchain:true version:21]) (push) Waiting to run
Details
See gh-47263
2025-10-02 14:34:34 +02:00
Moritz Halbritter
1fda419b17
Upgrade to NullAway 0.12.10 and ErrorProne 2.42.0
...
See gh-47263
2025-10-02 14:34:33 +02:00
Moritz Halbritter
4c8cabcb3a
Upgrade to JUnit Jupiter 6.0.0
...
Closes gh-47383
2025-10-02 14:20:04 +02:00
Moritz Halbritter
dec46b45d7
Start building against Spring Framework 7.0.0-RC1 snapshots
...
See gh-47382
2025-10-02 14:17:29 +02:00
Moritz Halbritter
57992512b7
Add nullability annotations to tests in core/spring-boot-autoconfigure
...
See gh-47263
2025-10-02 12:17:57 +02:00
Moritz Halbritter
b566b73be6
Add nullability annotations to tests in core/spring-boot-docker-compose
...
See gh-47263
2025-10-02 12:17:00 +02:00
Moritz Halbritter
532ea9abc1
Add nullability annotations to tests in core/spring-boot-properties-migrator
...
See gh-47263
2025-10-02 12:16:24 +02:00
Moritz Halbritter
ea05f6df15
Add nullability annotations to tests in core/spring-boot-test
...
See gh-47263
2025-10-02 12:12:44 +02:00
Moritz Halbritter
23c9b6510b
Add nullability annotations to tests in core/spring-boot-testcontainers
...
See gh-47263
2025-10-02 12:00:16 +02:00
Moritz Halbritter
9bb62a074b
Add nullability annotations to tests in module/spring-boot-actuator
...
See gh-47263
2025-10-02 11:59:32 +02:00
Moritz Halbritter
fe975214cd
Add nullability annotations to tests in module/spring-boot-activemq
...
See gh-47263
2025-10-02 11:58:23 +02:00
Moritz Halbritter
c099462e6f
Upgrade to nullability plugin 0.0.5
...
Closes gh-47380
2025-10-02 11:43:11 +02:00
Andy Wilkinson
ee2730ca8d
Stop an ObjectMapper from causing JsonMapper auto-config to back off
...
Previously, the auto-configured JsonMapper would back off when any
type of ObjectMapper was defined. Updating this was missed as part
of the move to Jackson 3 where both Boot and Framework now intend to
use the more specific JsonMapper type.
This commit updates the condition such that a JsonMapper will still
be auto-configured when any other type of ObjectMapper is definied.
It will now only back off when a JsonMapper bean is defined.
Closes gh-47379
2025-10-02 09:30:26 +01:00
Stéphane Nicoll
b28d390c69
Rationalize SSL bundles in RedisConnectionDetails
...
This commit exposes a single ssl bundle rather than a specific bundle
for each of the three supported modes.
Closes gh-47375
2025-10-02 10:00:07 +02:00
Stéphane Nicoll
e7ffa33d65
Remove unused file
2025-10-02 09:44:38 +02:00
Phillip Webb
dadfd9a35d
Add classic test starter
...
See gh-46356
See gh-47322
2025-10-01 21:55:38 -07:00
Phillip Webb
2d312ed5f5
Add remaining test starters
...
Add test starters for all remaining non-deprecated starters.
See gh-46356
See gh-47322
2025-10-01 21:55:33 -07:00
Phillip Webb
ee72caf7dc
Drop `spring-boot-rest-client-test` dependency from test starter
...
See gh-46356
See gh-47322
2025-10-01 21:55:25 -07:00
Phillip Webb
a30e832915
Add starters for corresponding test modules
...
See gh-46356
See gh-47322
2025-10-01 21:55:19 -07:00
Phillip Webb
0ae23de2b5
Refine test module dependencies
...
See gh-46356
See gh-47322
2025-10-01 21:55:14 -07:00
Phillip Webb
2a521ce4e9
Remove `spring-boot-web-server-test` module
...
Remove the `spring-boot-web-server-test` module, adding
`SpringBootTestRandomPortContextCustomizerFactory` to
`spring-boot-web-server` as a replacement for
`SpringBootTestRandomPortApplicationListener`.
See gh-46356
See gh-47322
2025-10-01 21:54:54 -07:00
Phillip Webb
3cced515ce
Remove unused HTML Unit classes
...
Remove `LocalHostWebClient` and `LocalHostWebConnectionHtmlUnitDriver`
in favor of `BaseUrl` versions.
See gh-46356
See gh-47322
2025-10-01 21:54:44 -07:00
Phillip Webb
279de9e807
Migrate to `BaseUrlUriTemplateHandler`
...
Remove `LocalHostUriTemplateHandler` and migrate existing code to use
`BaseUrlUriTemplateHandler`.
See gh-46356
See gh-47322
2025-10-01 21:54:32 -07:00
Phillip Webb
97c89b480f
Move `@LocalServerPort` and `@LocalManagementServerPort`
...
Move `@LocalServerPort` and `@LocalManagementServerPort` back to
`spring-boot-test`. The should help reduce upgrade pain since these
annotations are fairly commonly used. It also removes the need for
depending on `spring-boot-webserver-test`.
This is slight compromise with the module structure, since the
web-server module usually contributes the properties referenced
by the annotations.
See gh-46356
See gh-47322
2025-10-01 21:53:58 -07:00
Phillip Webb
82795f9966
Move `DisableReactorResourceFactory...` to spring-boot-test
...
Move `DisableReactorResourceFactoryGlobalResources...` support from
`spring-boot-web-server-test` back to `spring-boot-test` since it's
useful if Reactor Netty is being used directly and removes the need
for the `spring-boot-web-server-test` dependency.
See gh-46356
See gh-47322
2025-10-01 21:53:35 -07:00
Phillip Webb
7c8a15629b
Remove `spring-boot-web-server-test` usage
...
Remove `spring-boot-web-server-test` usage from the
`spring-boot-webflux-test` module.
See gh-46356
See gh-47322
2025-10-01 21:52:55 -07:00
Phillip Webb
ef37765625
Add `BaseUrl` backed HTTP Unit support classes
...
Add new HTML Unit support classes that use `BaseUrlProviders`
to find the `BaseUrl`.
See gh-46356
2025-10-01 21:51:58 -07:00
Phillip Webb
bba56ffc8b
Move `RestTestClientBuilderCustomizer` to `spring-boot-test`
...
Relocate `RestTestClientBuilderCustomizer` to `spring-boot-test`
and break the direct link to web-server by making use of
`spring.factories` and the new `BaseUrlProviders` class.
See gh-46356
2025-10-01 21:51:20 -07:00
Phillip Webb
6f909114e7
Move `WebTestClientBuilderCustomizer` to `spring-boot-test`
...
Relocate `WebTestClientBuilderCustomizer` to `spring-boot-test`
and break the direct link to web-server and http-codec by making
use of `spring.factories` and the new `BaseUrlProviders` class.
A new `spring-boot-test-integration-test` module has also been
added to ensure hold the previous tests.
See gh-46356
2025-10-01 21:50:13 -07:00
Phillip Webb
79091f926d
Introduce `BaseUrl` and `BaseUrlProvider`
...
Add the concept of a `BaseUrl` to the core `spring-boot-test`
module for use when making test HTTP calls. The web server module
provides `BaseUrlProvider` implementations that provide the actual
base URL (usually `https://localhost :<local-server-port>`).
Test utilities will be able to use `BaseUrlProviders` to find the
`BaseUrl`.
See gh-46356
2025-10-01 21:46:28 -07:00
Phillip Webb
155e3bd5e6
Relocate `@AutoConfigureDataSourceInitialization`
...
Relocate `@AutoConfigureDataSourceInitialization` from
`spring-jdbc-test` to `spring-boot-test-autoconfigure`. This change
allows Flyway and Liquibase to respond to the annotation without
the user needing to remember the `spring-jdbc-test` dependency.
This is especially important for R2DB applications which may
still be using Flyway or Liquibase for migrations and will
want them to apply during tests.
See gh-46356
See gh-47322
2025-10-01 21:43:13 -07:00
Phillip Webb
8008076e04
Remove spring-boot-json-test module
...
Remove spring-boot-json-test module and spread code between
`spring-boot-test`, `spring-boot-test-autoconfigure` and JSON
technology modules.
See gh-46356
See gh-47322
2025-10-01 21:42:18 -07:00
Phillip Webb
4b2d358384
Refine spring-boot-test-autoconfigure dependencies
...
Make `spring-boot-test-autoconfigure` optionally depend on
`spring-boot-autoconfigure` so that it can be an `api` dependency
for `*-test` modules. Also relocate it to core.
See gh-47322
2025-10-01 21:41:55 -07:00
Phillip Webb
17e655b7e5
Relocate `@PropertyMapping` to spring-boot-test
...
Move `@PropertyMapping` and supporting code from the
`spring-boot-test-autoconfigure` module to `spring-boot-test`
since it's generally applicable.
See gh-46356
See gh-47322
2025-10-01 21:41:03 -07:00
Phillip Webb
2b3a8ff647
Relocate `@TypeExcludeFilters` to spring-boot-test
...
Move `@TypeExcludeFilters` and supporting code from the
`spring-boot-test-autoconfigure` module to `spring-boot-test`
since it's generally applicable.
See gh-46356
See gh-47322
2025-10-01 21:39:34 -07:00
Phillip Webb
36732bd74a
Polish
2025-10-01 17:21:00 -07:00
Phillip Webb
352925bbe8
Polish @Since tags
2025-10-01 17:10:30 -07:00
Phillip Webb
f8f6e59d1a
Polish starter descriptions
2025-10-01 11:40:03 -07:00
Phillip Webb
08a641c1a2
Polish whitespace in gradle files
2025-10-01 11:40:03 -07:00
Andy Wilkinson
26364c27e2
Rename …DataAutoConfiguration to Data…AutoConfiguration
...
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run
Details
Build and Deploy Snapshot / Trigger Docs Build (push) Blocked by required conditions
Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:24], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:24], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:17], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:17], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:21], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:21], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:25], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:25], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
Run CodeQL Analysis / run-analysis (push) Waiting to run
Details
Run System Tests / Java ${{ matrix.java.version}} (map[toolchain:true version:17]) (push) Waiting to run
Details
Run System Tests / Java ${{ matrix.java.version}} (map[toolchain:true version:21]) (push) Waiting to run
Details
Closes gh-47049
2025-10-01 17:39:08 +01:00
Stéphane Nicoll
787840735b
Add support for RestTestClient
...
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run
Details
Build and Deploy Snapshot / Trigger Docs Build (push) Blocked by required conditions
Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:24], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:24], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:17], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:17], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:21], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:21], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:25], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:25], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
Run CodeQL Analysis / run-analysis (push) Waiting to run
Details
Run System Tests / Java ${{ matrix.java.version}} (map[toolchain:true version:17]) (push) Waiting to run
Details
Run System Tests / Java ${{ matrix.java.version}} (map[toolchain:true version:21]) (push) Waiting to run
Details
This commit adds support for RestTestClient for MockMvc and integration
tests.
Closes gh-47335
2025-10-01 09:04:59 +02:00
Andy Wilkinson
e2ba4dad2a
Correct property in Session Data Redis smoke test
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run
Details
Build and Deploy Snapshot / Trigger Docs Build (push) Blocked by required conditions
Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:24], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:24], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:17], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:17], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:21], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:21], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:25], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:25], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
Run CodeQL Analysis / run-analysis (push) Waiting to run
Details
Run System Tests / Java ${{ matrix.java.version}} (map[toolchain:true version:17]) (push) Waiting to run
Details
Run System Tests / Java ${{ matrix.java.version}} (map[toolchain:true version:21]) (push) Waiting to run
Details
2025-09-30 17:03:55 +01:00
Andy Wilkinson
7a595f1b83
Rename properties for Spring Session Data MongoDB and Data Redis
...
Closes gh-47333
2025-09-30 15:46:46 +01:00