Commit Graph

55724 Commits

Author SHA1 Message Date
Phillip Webb 55d2c14d3a Create spring-boot-autoconfigure-classic module
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Has been cancelled Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:24], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Has been cancelled Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:24], map[id:windows-latest name:Windows]) (push) Has been cancelled Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:17], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Has been cancelled Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:17], map[id:windows-latest name:Windows]) (push) Has been cancelled Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:21], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Has been cancelled Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:21], map[id:windows-latest name:Windows]) (push) Has been cancelled Details
Run CodeQL Analysis / run-analysis (push) Has been cancelled Details
Run System Tests / Java ${{ matrix.java.version}} (map[toolchain:false version:17]) (push) Has been cancelled Details
Run System Tests / Java ${{ matrix.java.version}} (map[toolchain:true version:21]) (push) Has been cancelled Details
Build and Deploy Snapshot / Verify (push) Has been cancelled Details
Issue: 46233
2025-06-30 17:00:12 -07:00
Phillip Webb c005196b23 Provide better configuration properties binding exception message
Update `ConfigurationPropertiesBeanRegistrar` to provide the name
of the bean and the type when failures occur.

Issue: 46232
2025-06-30 16:58:09 -07:00
Andy Wilkinson dd08a1b3d1 Make BytesEncoder back off without an Encoding bean
Issue: 46153
2025-06-30 16:57:43 -07:00
Andy Wilkinson da03d91ce8 Order BatchAutoConfiguration after DataSourceAutoConfiguration
Prior to the restructuring, this ordering was in place, but not
directly. BatchAutoConfiguration was ordered after
HibernateJpaAutoConfiguration which, in turn, was ordered after
DataSourceAutoConfiguration. This works as all of the
auto-configuration was in the same module.

Following the restructuring, HibernateJpaAutoConfiguration may not be
on the classpath. When it's absent, it's ordering is also lost which
means that BatchAutoConfiguration won't be ordered after
DataSourceAutoConfiguation with spring-boot-hibernate isn't present.

This commit adds explicit after ordering to BatchAutoConfiguration.
This ensures consistent ordering, with or without the JPA
auto-config.

Issue: 46071
2025-06-30 16:57:43 -07:00
Phillip Webb ed588794aa Align reactive auto-configuration names
Rename a few reactive auto-configuration and related classes for better
consistency.

Issue: 46156
2025-06-30 16:57:42 -07:00
Phillip Webb f0abccffbc Create spring-boot-health module
Issue: 46155
2025-06-30 16:57:42 -07:00
Phillip Webb e905b51fc2 Order endpoint properties alphabetically
Issue: 46227
2025-06-30 16:57:42 -07:00
Phillip Webb 22865e79bf Add EndpointObjectMapper supported types method
Issue: 45876
2025-06-30 16:57:42 -07:00
Phillip Webb d4be64f12d Restructure autoconfigure packages
Restructure modules packages so that all auto-configuration is
organized under single top-level autoconfigure package.

Issue: 46071

Co-authored-by: Andy Wilkinson <andy.wilkinson@broadcom.com>
2025-06-30 16:57:42 -07:00
Phillip Webb 9c9d6d39a2 Create spring-boot-hibernate module
Issue: 46154
2025-06-30 16:57:42 -07:00
Andy Wilkinson f49aaa5808 Remove most deprecated APIs that were due for removal in 4.0
Support for rest controller, controler, and servlet endpoints has
been kept for now.

Issue: 45600
2025-06-30 16:57:41 -07:00
Andy Wilkinson a85987e3c7 Move remaining integration tests out of actuator-autoconfigure-all
Issue: 46071
2025-06-30 16:57:41 -07:00
Andy Wilkinson a2eee37bdb Move some tests out of actuator-autoconfigure-all
Issue: 46071
2025-06-30 16:57:41 -07:00
Phillip Webb 2207c5d539 Move management web security concerns to spring-security module
Issue: 46133
2025-06-30 16:57:41 -07:00
Andy Wilkinson d8598863dd Minimize what remains of actuator-autoconfigure-all
Issue: 46071
2025-06-30 16:57:41 -07:00
Andy Wilkinson 87fabd2752 Move code from docker-compose-all into relevant modules
Issue: 46071
2025-06-30 16:57:41 -07:00
Andy Wilkinson 973f8dcb88 Move code out of testcontainers-all into relevant modules
Issue: 46071
2025-06-30 16:57:41 -07:00
Andy Wilkinson 9753766348 Create spring-boot-tracing module
Issue: 46153
2025-06-30 16:57:41 -07:00
Andy Wilkinson a17591d233 Create spring-boot-cloudfoundry module
Issue: 46152
2025-06-30 16:57:40 -07:00
Phillip Webb 4e2fbd3e71 Introduce ObservationHandlerGroup interface
Add a new `ObservationHandlerGroup` interface that allows grouping
logic to be implemented by the metrics and tracing modules. This
update removes the need for `ObservabilityAutoConfiguration`.

Issue: 45746
2025-06-30 16:57:40 -07:00
Andy Wilkinson d19d1b9dee Move SSL auto-configuration out of actuator-autoconfigure-all
Issue: 46071
2025-06-30 16:57:40 -07:00
Andy Wilkinson 29d1fe24ec Remove spring-boot-autoconfigure-all
Issue: 46071
2025-06-30 16:57:40 -07:00
Andy Wilkinson b566e98fed Move Servlet Filters into spring-boot-servlet
Issue: 46151
2025-06-30 16:57:40 -07:00
Andy Wilkinson 5ab9e724d5 Move MultipartAutoConfigurationTests to main code's module
Issue: 46071
2025-06-30 16:57:40 -07:00
Andy Wilkinson e6eff6bf57 Move servlet http encoding auto-configuration into spring-boot-servlet
Issue: 46151
2025-06-30 16:57:40 -07:00
Andy Wilkinson 60b16b17fd Move additional property metadata out of autoconfigure-all
Issue: 46071
2025-06-30 16:57:39 -07:00
Andy Wilkinson 96946c67cf Move HTTP exchange auto-config into appropriate modules
Issue: 46071
2025-06-30 16:57:39 -07:00
Andy Wilkinson 8ae180024c Move mapping description auto-configuration into appropriate modules
Issue: 46071
2025-06-30 16:57:39 -07:00
Andy Wilkinson d75885c092 Remove remaining usages of MetricsRun
Issue: 46071
2025-06-30 16:57:39 -07:00
Andy Wilkinson 50dffa1adb Remove MetricsIntegrationTests as it duplicates other tests
automaticallyRegisteredBinders
	Many other tests that check that MeterBinder beans are defined

metricsFilterRegisteredForAsyncDispatches
	filterRegistrationHasExpectedDispatcherTypesAndOrder in
	WebMvcObservationAutoConfigurationTests

restTemplateIsInstrumented
	restTemplateCreatedWithBuilderIsInstrumented in
	RestTemplateObservationAutoConfigurationTests

requestMappingIsInstrumented
	Various tests in WebMvcObservationAutoConfigurationTests

Issue: 46071
2025-06-30 16:57:39 -07:00
Andy Wilkinson 06156f83d8 Move code out of spring-boot-actuator-autoconfigure-all
Issue: 46071
2025-06-30 16:57:39 -07:00
Andy Wilkinson d2c5d6f048 Enable auto-configuration checks and fix issues
Issue: 46071
2025-06-30 16:57:39 -07:00
Stéphane Nicoll e2515b6a61 Move Servlet high-level infrastructure to spring-boot-servlet
Issue: 46151
2025-06-30 16:57:39 -07:00
Andy Wilkinson 5a4ecfe087 Break cycle in spring-boot-data-* modules
There was a cycle in the spring-boot-data-* modules.

SpringDataWebAutoConfiguration (which sits at the spring-data-commons
level) referenced RepositoryRestMvcAutoConfiguration (which sits
at the spring-data-rest level). This dependency's expressed in the
wrong direction as data-rest depends on data-commons. The resulting
cycle was not noticable as it was expressed through a String afterName
attribute on `@AutoConfiguration`.

spring-boot-data-commons was also using spring-boot-data-jpa for its
tests, which also results in an inverted dependency relationship.

This commit reworks things so that all of the spring-boot-data-*
modules depend upon spring-boot-data-commons, mirroring the
dependency relationship in Spring Data. The integration tests in
spring-boot-data-commons have been reworked to use Spring Data
directly, avoiding the need for a circular from
spring-boot-data-commons to another spring-boot-data-* module.

Issue: 46071
2025-06-30 16:57:38 -07:00
Stéphane Nicoll 956e644ba9 Move Actuator infrastructure for WebFlux to spring-boot-webflux
Issue: 46138
2025-06-30 16:57:38 -07:00
Andy Wilkinson e07a56c12a Move Spring Data repository metrics into spring-boot-data-commons
Issue: 46131
2025-06-30 16:57:38 -07:00
Andy Wilkinson 32136e3e4a Rename spring-boot-data-web to spring-boot-data-commons
Issue: 46131
2025-06-30 16:57:38 -07:00
Andy Wilkinson 875d02a77c Move task metrics auto-configuration into spring-boot-metrics
Issue: 46147
2025-06-30 16:57:38 -07:00
Andy Wilkinson caa1396f28 Move scheduled task observation to spring-boot-observation
Issue: 46150
2025-06-30 16:57:38 -07:00
Andy Wilkinson d7018f8824 Rename spring-boot-micrometer-observation to spring-boot-observation
Issue: 46150
2025-06-30 16:57:38 -07:00
Andy Wilkinson 3c124ea91d Move WebMvc observation auto-config into spring-boot-webmvc
Issue: 46121
2025-06-30 16:57:38 -07:00
Stéphane Nicoll 4dae86a8fc Move Actuator infrastructure for WebMvc to spring-boot-webmvc
Issue: 46121
2025-06-30 16:57:37 -07:00
Andy Wilkinson 791fd90359 Move WebFlux observation auto-config into spring-boot-webflux
Issue: 46138
2025-06-30 16:57:37 -07:00
Andy Wilkinson 54991f4212 Move R2DBC health and observation to spring-boot-r2dbc
Issue: 46094
2025-06-30 16:57:37 -07:00
Andy Wilkinson cf7280cfc6 Move HTTP client observation support into relevant modules
Issue: 46071
2025-06-30 16:57:37 -07:00
Andy Wilkinson 0bef6814d4 Move GraphQL observation support into spring-boot-graphql
Issue: 46141
2025-06-30 16:57:37 -07:00
Andy Wilkinson f0986c4a88 Move Batch observation support into spring-boot-batch
Issue: 46100
2025-06-30 16:57:37 -07:00
Andy Wilkinson ab33a66ca1 Move Jersey metrics to spring-boot-jersey
Issue: 46116
2025-06-30 16:57:37 -07:00
Andy Wilkinson 54abdf8b95 Create spring-boot-micrometer-observation module
Issue: 46150
2025-06-30 16:57:37 -07:00
Andy Wilkinson f100e50c2f Move metrics export into spring-boot-metrics
Issue: 46147
2025-06-30 16:57:36 -07:00