Skip to content

Commit b44dfad

Browse files
committed
Move Actuator Tomcat infrastructure to spring-boot-tomcat
1 parent ca54221 commit b44dfad

File tree

21 files changed

+23
-27
lines changed

21 files changed

+23
-27
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure-all/src/main/resources/META-INF/spring/org.springframework.boot.actuate.autoconfigure.web.ManagementContextConfiguration.imports

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ org.springframework.boot.actuate.autoconfigure.security.servlet.SecurityRequestM
44
org.springframework.boot.actuate.autoconfigure.web.reactive.ReactiveManagementChildContextConfiguration
55
org.springframework.boot.actuate.autoconfigure.web.server.jetty.JettyReactiveManagementChildContextConfiguration
66
org.springframework.boot.actuate.autoconfigure.web.server.jetty.JettyServletManagementChildContextConfiguration
7-
org.springframework.boot.actuate.autoconfigure.web.server.tomcat.TomcatReactiveManagementChildContextConfiguration
8-
org.springframework.boot.actuate.autoconfigure.web.server.tomcat.TomcatServletManagementChildContextConfiguration
97
org.springframework.boot.actuate.autoconfigure.web.server.undertow.UndertowReactiveManagementChildContextConfiguration
108
org.springframework.boot.actuate.autoconfigure.web.server.undertow.UndertowServletManagementChildContextConfiguration
119
org.springframework.boot.actuate.autoconfigure.web.servlet.ServletManagementChildContextConfiguration

spring-boot-project/spring-boot-actuator-autoconfigure-all/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ org.springframework.boot.actuate.autoconfigure.web.mappings.MappingsEndpointAuto
7373
org.springframework.boot.actuate.autoconfigure.web.server.jetty.JettyReactiveManagementContextAutoConfiguration
7474
org.springframework.boot.actuate.autoconfigure.web.server.jetty.JettyServletManagementContextAutoConfiguration
7575
org.springframework.boot.actuate.autoconfigure.web.server.netty.NettyReactiveManagementContextAutoConfiguration
76-
org.springframework.boot.actuate.autoconfigure.web.server.tomcat.TomcatReactiveManagementContextAutoConfiguration
77-
org.springframework.boot.actuate.autoconfigure.web.server.tomcat.TomcatServletManagementContextAutoConfiguration
7876
org.springframework.boot.actuate.autoconfigure.web.server.undertow.UndertowReactiveManagementContextAutoConfiguration
7977
org.springframework.boot.actuate.autoconfigure.web.server.undertow.UndertowServletManagementContextAutoConfiguration
8078
org.springframework.boot.actuate.autoconfigure.web.servlet.ServletManagementContextAutoConfiguration

spring-boot-project/spring-boot-actuator-autoconfigure-all/src/test/java/org/springframework/boot/actuate/autoconfigure/integrationtest/JerseyHealthEndpointAdditionalPathIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import org.springframework.boot.actuate.autoconfigure.health.HealthEndpointAutoConfiguration;
2222
import org.springframework.boot.actuate.autoconfigure.system.DiskSpaceHealthContributorAutoConfiguration;
2323
import org.springframework.boot.actuate.autoconfigure.web.server.ManagementContextAutoConfiguration;
24-
import org.springframework.boot.actuate.autoconfigure.web.server.tomcat.TomcatServletManagementContextAutoConfiguration;
2524
import org.springframework.boot.actuate.autoconfigure.web.servlet.ServletManagementContextAutoConfiguration;
2625
import org.springframework.boot.autoconfigure.AutoConfigurations;
2726
import org.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration;
@@ -30,6 +29,7 @@
3029
import org.springframework.boot.test.context.FilteredClassLoader;
3130
import org.springframework.boot.test.context.assertj.AssertableWebApplicationContext;
3231
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
32+
import org.springframework.boot.tomcat.actuate.autoconfigure.web.TomcatServletManagementContextAutoConfiguration;
3333
import org.springframework.boot.tomcat.autoconfigure.servlet.TomcatServletWebServerAutoConfiguration;
3434
import org.springframework.boot.web.server.context.ServerPortInfoApplicationContextInitializer;
3535
import org.springframework.boot.web.server.servlet.context.AnnotationConfigServletWebServerApplicationContext;

spring-boot-project/spring-boot-actuator-autoconfigure-all/src/test/java/org/springframework/boot/actuate/autoconfigure/integrationtest/WebMvcHealthEndpointAdditionalPathIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
import org.springframework.boot.actuate.autoconfigure.health.HealthEndpointAutoConfiguration;
2222
import org.springframework.boot.actuate.autoconfigure.system.DiskSpaceHealthContributorAutoConfiguration;
2323
import org.springframework.boot.actuate.autoconfigure.web.server.ManagementContextAutoConfiguration;
24-
import org.springframework.boot.actuate.autoconfigure.web.server.tomcat.TomcatServletManagementContextAutoConfiguration;
2524
import org.springframework.boot.actuate.autoconfigure.web.servlet.ServletManagementContextAutoConfiguration;
2625
import org.springframework.boot.autoconfigure.AutoConfigurations;
2726
import org.springframework.boot.http.converter.autoconfigure.HttpMessageConvertersAutoConfiguration;
2827
import org.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration;
2928
import org.springframework.boot.test.context.assertj.AssertableWebApplicationContext;
3029
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
30+
import org.springframework.boot.tomcat.actuate.autoconfigure.web.TomcatServletManagementContextAutoConfiguration;
3131
import org.springframework.boot.tomcat.autoconfigure.servlet.TomcatServletWebServerAutoConfiguration;
3232
import org.springframework.boot.web.server.context.ServerPortInfoApplicationContextInitializer;
3333
import org.springframework.boot.web.server.servlet.context.AnnotationConfigServletWebServerApplicationContext;

spring-boot-project/spring-boot-actuator-autoconfigure-all/src/test/java/org/springframework/boot/actuate/autoconfigure/web/reactive/ReactiveManagementChildContextConfigurationIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import org.springframework.boot.actuate.autoconfigure.endpoint.EndpointAutoConfiguration;
3333
import org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointAutoConfiguration;
3434
import org.springframework.boot.actuate.autoconfigure.web.server.ManagementContextAutoConfiguration;
35-
import org.springframework.boot.actuate.autoconfigure.web.server.tomcat.TomcatReactiveManagementContextAutoConfiguration;
3635
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
3736
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
3837
import org.springframework.boot.autoconfigure.AutoConfigurations;
@@ -42,6 +41,7 @@
4241
import org.springframework.boot.test.context.runner.ContextConsumer;
4342
import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner;
4443
import org.springframework.boot.tomcat.TomcatWebServer;
44+
import org.springframework.boot.tomcat.actuate.autoconfigure.web.TomcatReactiveManagementContextAutoConfiguration;
4545
import org.springframework.boot.tomcat.autoconfigure.reactive.TomcatReactiveWebServerAutoConfiguration;
4646
import org.springframework.boot.web.server.WebServer;
4747
import org.springframework.boot.web.server.context.ServerPortInfoApplicationContextInitializer;

spring-boot-project/spring-boot-actuator-autoconfigure-all/src/test/java/org/springframework/boot/actuate/autoconfigure/web/server/ChildManagementContextInitializerAotTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
import org.springframework.aot.test.generate.TestGenerationContext;
2626
import org.springframework.boot.actuate.autoconfigure.endpoint.EndpointAutoConfiguration;
2727
import org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointAutoConfiguration;
28-
import org.springframework.boot.actuate.autoconfigure.web.server.tomcat.TomcatServletManagementContextAutoConfiguration;
2928
import org.springframework.boot.actuate.autoconfigure.web.servlet.ServletManagementContextAutoConfiguration;
3029
import org.springframework.boot.autoconfigure.AutoConfigurations;
3130
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
3231
import org.springframework.boot.test.system.CapturedOutput;
3332
import org.springframework.boot.test.system.OutputCaptureExtension;
3433
import org.springframework.boot.test.util.TestPropertyValues;
3534
import org.springframework.boot.testsupport.web.servlet.DirtiesUrlFactories;
35+
import org.springframework.boot.tomcat.actuate.autoconfigure.web.TomcatServletManagementContextAutoConfiguration;
3636
import org.springframework.boot.tomcat.autoconfigure.servlet.TomcatServletWebServerAutoConfiguration;
3737
import org.springframework.boot.web.server.servlet.context.AnnotationConfigServletWebServerApplicationContext;
3838
import org.springframework.boot.web.server.servlet.context.ServletWebServerApplicationContext;

spring-boot-project/spring-boot-actuator-autoconfigure-all/src/test/java/org/springframework/boot/actuate/autoconfigure/web/server/ManagementContextAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323

2424
import org.springframework.boot.actuate.autoconfigure.endpoint.EndpointAutoConfiguration;
2525
import org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointAutoConfiguration;
26-
import org.springframework.boot.actuate.autoconfigure.web.server.tomcat.TomcatServletManagementContextAutoConfiguration;
2726
import org.springframework.boot.actuate.autoconfigure.web.servlet.ServletManagementContextAutoConfiguration;
2827
import org.springframework.boot.autoconfigure.AutoConfigurations;
2928
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
3029
import org.springframework.boot.test.system.CapturedOutput;
3130
import org.springframework.boot.test.system.OutputCaptureExtension;
31+
import org.springframework.boot.tomcat.actuate.autoconfigure.web.TomcatServletManagementContextAutoConfiguration;
3232
import org.springframework.boot.tomcat.autoconfigure.servlet.TomcatServletWebServerAutoConfiguration;
3333
import org.springframework.boot.web.server.servlet.context.AnnotationConfigServletWebServerApplicationContext;
3434
import org.springframework.boot.webmvc.autoconfigure.DispatcherServletAutoConfiguration;

spring-boot-project/spring-boot-actuator-autoconfigure-all/src/test/java/org/springframework/boot/actuate/autoconfigure/web/servlet/WebMvcEndpointChildContextConfigurationIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import org.springframework.boot.actuate.autoconfigure.endpoint.EndpointAutoConfiguration;
3535
import org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointAutoConfiguration;
3636
import org.springframework.boot.actuate.autoconfigure.web.server.ManagementContextAutoConfiguration;
37-
import org.springframework.boot.actuate.autoconfigure.web.server.tomcat.TomcatServletManagementContextAutoConfiguration;
3837
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
3938
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
4039
import org.springframework.boot.autoconfigure.AutoConfigurations;
@@ -43,6 +42,7 @@
4342
import org.springframework.boot.test.context.assertj.AssertableWebApplicationContext;
4443
import org.springframework.boot.test.context.runner.ContextConsumer;
4544
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
45+
import org.springframework.boot.tomcat.actuate.autoconfigure.web.TomcatServletManagementContextAutoConfiguration;
4646
import org.springframework.boot.tomcat.autoconfigure.servlet.TomcatServletWebServerAutoConfiguration;
4747
import org.springframework.boot.web.server.context.ServerPortInfoApplicationContextInitializer;
4848
import org.springframework.boot.web.server.servlet.context.AnnotationConfigServletWebServerApplicationContext;

spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ dependencies {
1212
api(project(":spring-boot-project:spring-boot-actuator"))
1313
api(project(":spring-boot-project:spring-boot-autoconfigure"))
1414

15-
optional(project(":spring-boot-project:spring-boot-tomcat"))
1615
optional(project(":spring-boot-project:spring-boot-web-server"))
1716

1817
optional("com.fasterxml.jackson.core:jackson-databind")

spring-boot-project/spring-boot-tomcat/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ dependencies {
2020
exclude group: "org.apache.tomcat", module: "tomcat-annotations-api"
2121
}
2222

23+
optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
2324
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
2425
optional("io.micrometer:micrometer-core")
2526
optional("org.apache.tomcat.embed:tomcat-embed-jasper")

0 commit comments

Comments
 (0)