Skip to content

Commit 4697703

Browse files
committed
Create spring-boot-reactor-netty module
1 parent 2bbb521 commit 4697703

File tree

55 files changed

+179
-67
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+179
-67
lines changed

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ include "spring-boot-project:spring-boot-docker-compose"
6767
include "spring-boot-project:spring-boot-devtools"
6868
include "spring-boot-project:spring-boot-docs"
6969
include "spring-boot-project:spring-boot-jetty"
70+
include "spring-boot-project:spring-boot-reactor-netty"
7071
include "spring-boot-project:spring-boot-test"
7172
include "spring-boot-project:spring-boot-testcontainers"
7273
include "spring-boot-project:spring-boot-test-autoconfigure"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ dependencies {
1818
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
1919

2020
optional(project(":spring-boot-project:spring-boot-jetty"))
21+
optional(project(":spring-boot-project:spring-boot-reactor-netty"))
2122
optional(project(":spring-boot-project:spring-boot-tomcat"))
2223
optional(project(":spring-boot-project:spring-boot-undertow"))
2324
optional("ch.qos.logback:logback-classic")

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/server/netty/NettyReactiveManagementChildContextConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
2727
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
2828
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication.Type;
29-
import org.springframework.boot.autoconfigure.web.server.reactive.netty.NettyReactiveWebServerAutoConfiguration;
3029
import org.springframework.boot.context.properties.EnableConfigurationProperties;
30+
import org.springframework.boot.reactor.netty.autoconfigure.NettyReactiveWebServerAutoConfiguration;
3131
import org.springframework.boot.web.server.reactive.ReactiveWebServerFactory;
3232
import org.springframework.context.annotation.Bean;
3333

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/server/netty/NettyReactiveManagementContextAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
2727
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
2828
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication.Type;
29-
import org.springframework.boot.autoconfigure.web.server.reactive.netty.NettyReactiveWebServerAutoConfiguration;
29+
import org.springframework.boot.reactor.netty.autoconfigure.NettyReactiveWebServerAutoConfiguration;
3030
import org.springframework.boot.web.server.reactive.ReactiveWebServerFactory;
3131
import org.springframework.context.annotation.Bean;
3232

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/reactive/CloudFoundryWebFluxEndpointIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
import org.springframework.boot.autoconfigure.AutoConfigurations;
4747
import org.springframework.boot.autoconfigure.web.reactive.HttpHandlerAutoConfiguration;
4848
import org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration;
49-
import org.springframework.boot.autoconfigure.web.server.reactive.netty.NettyReactiveWebServerAutoConfiguration;
49+
import org.springframework.boot.reactor.netty.autoconfigure.NettyReactiveWebServerAutoConfiguration;
5050
import org.springframework.boot.test.context.assertj.AssertableReactiveWebApplicationContext;
5151
import org.springframework.boot.test.context.runner.ContextConsumer;
5252
import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration;
2929
import org.springframework.boot.autoconfigure.web.reactive.HttpHandlerAutoConfiguration;
3030
import org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration;
31-
import org.springframework.boot.autoconfigure.web.server.reactive.netty.NettyReactiveWebServerAutoConfiguration;
31+
import org.springframework.boot.reactor.netty.autoconfigure.NettyReactiveWebServerAutoConfiguration;
3232
import org.springframework.boot.test.context.assertj.AssertableReactiveWebApplicationContext;
3333
import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner;
3434
import org.springframework.boot.web.reactive.context.AnnotationConfigReactiveWebServerApplicationContext;

spring-boot-project/spring-boot-actuator-autoconfigure/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
@@ -28,7 +28,7 @@
2828
import org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration;
2929
import org.springframework.boot.autoconfigure.web.reactive.HttpHandlerAutoConfiguration;
3030
import org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration;
31-
import org.springframework.boot.autoconfigure.web.server.reactive.netty.NettyReactiveWebServerAutoConfiguration;
31+
import org.springframework.boot.reactor.netty.autoconfigure.NettyReactiveWebServerAutoConfiguration;
3232
import org.springframework.boot.test.context.assertj.AssertableReactiveWebApplicationContext;
3333
import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner;
3434
import org.springframework.boot.web.context.ServerPortInfoApplicationContextInitializer;

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/web/mappings/MappingsEndpointReactiveDocumentationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
import org.springframework.boot.actuate.web.mappings.MappingDescriptionProvider;
3030
import org.springframework.boot.actuate.web.mappings.MappingsEndpoint;
3131
import org.springframework.boot.actuate.web.mappings.reactive.DispatcherHandlersMappingDescriptionProvider;
32+
import org.springframework.boot.reactor.netty.NettyReactiveWebServerFactory;
3233
import org.springframework.boot.test.context.SpringBootTest;
3334
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
3435
import org.springframework.boot.test.web.server.LocalServerPort;
35-
import org.springframework.boot.web.server.reactive.netty.NettyReactiveWebServerFactory;
3636
import org.springframework.context.ConfigurableApplicationContext;
3737
import org.springframework.context.annotation.Bean;
3838
import org.springframework.context.annotation.Configuration;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ dependencies {
2424
dockerTestImplementation("org.testcontainers:testcontainers")
2525

2626
optional(project(":spring-boot-project:spring-boot-jetty"))
27+
optional(project(":spring-boot-project:spring-boot-reactor-netty"))
2728
optional(project(":spring-boot-project:spring-boot-tomcat"))
2829
optional(project(":spring-boot-project:spring-boot-undertow"))
2930
optional("org.apache.cassandra:java-driver-core") {
@@ -94,9 +95,10 @@ dependencies {
9495
optional("org.springframework.security:spring-security-web")
9596
optional("org.springframework.session:spring-session-core")
9697

98+
testImplementation(project(":spring-boot-project:spring-boot-autoconfigure-all"))
99+
testImplementation(project(":spring-boot-project:spring-boot-reactor-netty"))
97100
testImplementation(project(":spring-boot-project:spring-boot-test"))
98101
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
99-
testImplementation(project(":spring-boot-project:spring-boot-autoconfigure-all"))
100102
testImplementation("org.assertj:assertj-core")
101103
testImplementation("com.jayway.jsonpath:json-path")
102104
testImplementation("io.micrometer:micrometer-observation-test")

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/web/reactive/ControllerEndpointHandlerMappingIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
import org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConfiguration;
3535
import org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration;
3636
import org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration;
37+
import org.springframework.boot.reactor.netty.NettyReactiveWebServerFactory;
3738
import org.springframework.boot.test.context.assertj.AssertableReactiveWebApplicationContext;
3839
import org.springframework.boot.test.context.runner.ContextConsumer;
3940
import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner;
4041
import org.springframework.boot.web.reactive.context.AnnotationConfigReactiveWebServerApplicationContext;
41-
import org.springframework.boot.web.server.reactive.netty.NettyReactiveWebServerFactory;
4242
import org.springframework.context.ApplicationContext;
4343
import org.springframework.context.annotation.Bean;
4444
import org.springframework.context.annotation.Configuration;

0 commit comments

Comments
 (0)