Skip to content

Commit 866be14

Browse files
wilkinsonaphilwebb
authored andcommitted
Move Reactor Netty management server support to spring-boot-reactor-netty
Issue: 46076
1 parent f4bb9eb commit 866be14

File tree

10 files changed

+10
-29
lines changed

10 files changed

+10
-29
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ dependencies {
5757
optional(project(":spring-boot-project:spring-boot-kafka"))
5858
optional(project(":spring-boot-project:spring-boot-metrics"))
5959
optional(project(":spring-boot-project:spring-boot-r2dbc"))
60-
optional(project(":spring-boot-project:spring-boot-reactor-netty"))
6160
optional(project(":spring-boot-project:spring-boot-restclient"))
6261
optional(project(":spring-boot-project:spring-boot-security-oauth2-client"))
6362
optional(project(":spring-boot-project:spring-boot-security-oauth2-resource-server"))
@@ -147,6 +146,7 @@ dependencies {
147146

148147
testImplementation(project(":spring-boot-project:spring-boot-data-rest"))
149148
testImplementation(project(":spring-boot-project:spring-boot-hateoas"))
149+
testImplementation(project(":spring-boot-project:spring-boot-reactor-netty"))
150150
testImplementation(project(":spring-boot-project:spring-boot-restclient-test"))
151151
testImplementation(project(":spring-boot-project:spring-boot-test"))
152152
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,4 @@ org.springframework.boot.actuate.autoconfigure.tracing.zipkin.ZipkinTracingAutoC
6666
org.springframework.boot.actuate.autoconfigure.web.exchanges.HttpExchangesAutoConfiguration
6767
org.springframework.boot.actuate.autoconfigure.web.exchanges.HttpExchangesEndpointAutoConfiguration
6868
org.springframework.boot.actuate.autoconfigure.web.mappings.MappingsEndpointAutoConfiguration
69-
org.springframework.boot.actuate.autoconfigure.web.server.netty.NettyReactiveManagementContextAutoConfiguration
7069
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/WebFluxHealthEndpointAdditionalPathIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
import org.springframework.boot.actuate.autoconfigure.health.HealthEndpointAutoConfiguration;
2323
import org.springframework.boot.actuate.autoconfigure.system.DiskSpaceHealthContributorAutoConfiguration;
2424
import org.springframework.boot.actuate.autoconfigure.web.server.ManagementContextAutoConfiguration;
25-
import org.springframework.boot.actuate.autoconfigure.web.server.netty.NettyReactiveManagementContextAutoConfiguration;
2625
import org.springframework.boot.autoconfigure.AutoConfigurations;
2726
import org.springframework.boot.http.codec.autoconfigure.CodecsAutoConfiguration;
2827
import org.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration;
28+
import org.springframework.boot.reactor.netty.actuate.autoconfigure.web.server.NettyReactiveManagementContextAutoConfiguration;
2929
import org.springframework.boot.reactor.netty.autoconfigure.NettyReactiveWebServerAutoConfiguration;
3030
import org.springframework.boot.test.context.assertj.AssertableReactiveWebApplicationContext;
3131
import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner;

spring-boot-project/spring-boot-reactor-netty/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dependencies {
3232

3333
implementation(project(":spring-boot-project:spring-boot-netty"))
3434

35-
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
35+
optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
3636
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
3737

3838
testImplementation(project(":spring-boot-project:spring-boot-test"))

spring-boot-project/spring-boot-reactor-netty/src/main/java/org/springframework/boot/autoconfigure/web/server/reactive/netty/package-info.java

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.actuate.autoconfigure.web.server.netty;
17+
package org.springframework.boot.reactor.netty.actuate.autoconfigure.web.server;
1818

1919
import reactor.netty.http.server.HttpServer;
2020

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.actuate.autoconfigure.web.server.netty;
17+
package org.springframework.boot.reactor.netty.actuate.autoconfigure.web.server;
1818

1919
import reactor.netty.http.server.HttpServer;
2020

@@ -37,7 +37,7 @@
3737
* @since 4.0.0
3838
*/
3939
@AutoConfiguration
40-
@ConditionalOnClass(HttpServer.class)
40+
@ConditionalOnClass({ HttpServer.class, ManagementContextFactory.class })
4141
@ConditionalOnWebApplication(type = Type.REACTIVE)
4242
@ConditionalOnManagementPort(ManagementPortType.DIFFERENT)
4343
public class NettyReactiveManagementContextAutoConfiguration {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
*/
1616

1717
/**
18-
* Actuator Netty web server support.
18+
* Auto-configuration for a Reactor Netty based management server.
1919
*/
20-
package org.springframework.boot.actuate.autoconfigure.web.server.netty;
20+
package org.springframework.boot.reactor.netty.actuate.autoconfigure.web.server;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.springframework.boot.reactor.netty.actuate.autoconfigure.web.server.NettyReactiveManagementChildContextConfiguration
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
org.springframework.boot.reactor.netty.actuate.autoconfigure.web.server.NettyReactiveManagementContextAutoConfiguration
12
org.springframework.boot.reactor.netty.autoconfigure.NettyReactiveWebServerAutoConfiguration

0 commit comments

Comments
 (0)