Skip to content

Commit 44b43a5

Browse files
committed
Create spring-boot-jetty module
1 parent 676387c commit 44b43a5

File tree

66 files changed

+162
-114
lines changed

Some content is hidden

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

66 files changed

+162
-114
lines changed

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ include "spring-boot-project:spring-boot-all-integration-tests"
6666
include "spring-boot-project:spring-boot-docker-compose"
6767
include "spring-boot-project:spring-boot-devtools"
6868
include "spring-boot-project:spring-boot-docs"
69+
include "spring-boot-project:spring-boot-jetty"
6970
include "spring-boot-project:spring-boot-test"
7071
include "spring-boot-project:spring-boot-testcontainers"
7172
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
@@ -17,6 +17,7 @@ dependencies {
1717
implementation("com.fasterxml.jackson.core:jackson-databind")
1818
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
1919

20+
optional(project(":spring-boot-project:spring-boot-jetty"))
2021
optional(project(":spring-boot-project:spring-boot-tomcat"))
2122
optional(project(":spring-boot-project:spring-boot-undertow"))
2223
optional("ch.qos.logback:logback-classic")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
import org.eclipse.jetty.server.Server;
2525

2626
import org.springframework.boot.actuate.autoconfigure.web.server.AccessLogCustomizer;
27+
import org.springframework.boot.jetty.ConfigurableJettyWebServerFactory;
2728
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
28-
import org.springframework.boot.web.server.jetty.ConfigurableJettyWebServerFactory;
2929
import org.springframework.util.StringUtils;
3030

3131
/**

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/server/jetty/JettyReactiveManagementContextAutoConfiguration.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.jetty.JettyReactiveWebServerAutoConfiguration;
29+
import org.springframework.boot.jetty.reactive.autoconfigure.JettyReactiveWebServerAutoConfiguration;
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/main/java/org/springframework/boot/actuate/autoconfigure/web/server/jetty/JettyServletManagementContextAutoConfiguration.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.servlet.jetty.JettyServletWebServerAutoConfiguration;
29+
import org.springframework.boot.jetty.servlet.autoconfigure.JettyServletWebServerAutoConfiguration;
3030
import org.springframework.boot.web.server.servlet.ServletWebServerFactory;
3131
import org.springframework.context.annotation.Bean;
3232

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/web/jetty/JettyMetricsAutoConfigurationTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626
import org.springframework.boot.actuate.metrics.web.jetty.JettyServerThreadPoolMetricsBinder;
2727
import org.springframework.boot.actuate.metrics.web.jetty.JettySslHandshakeMetricsBinder;
2828
import org.springframework.boot.autoconfigure.AutoConfigurations;
29-
import org.springframework.boot.autoconfigure.web.server.reactive.jetty.JettyReactiveWebServerAutoConfiguration;
30-
import org.springframework.boot.autoconfigure.web.server.servlet.jetty.JettyServletWebServerAutoConfiguration;
3129
import org.springframework.boot.context.event.ApplicationStartedEvent;
30+
import org.springframework.boot.jetty.reactive.JettyReactiveWebServerFactory;
31+
import org.springframework.boot.jetty.reactive.autoconfigure.JettyReactiveWebServerAutoConfiguration;
32+
import org.springframework.boot.jetty.servlet.JettyServletWebServerFactory;
33+
import org.springframework.boot.jetty.servlet.autoconfigure.JettyServletWebServerAutoConfiguration;
3234
import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner;
3335
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
3436
import org.springframework.boot.testsupport.classpath.resources.WithPackageResources;
3537
import org.springframework.boot.web.reactive.context.AnnotationConfigReactiveWebServerApplicationContext;
36-
import org.springframework.boot.web.server.reactive.jetty.JettyReactiveWebServerFactory;
37-
import org.springframework.boot.web.server.servlet.jetty.JettyServletWebServerFactory;
3838
import org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext;
3939
import org.springframework.context.ConfigurableApplicationContext;
4040
import org.springframework.context.annotation.Bean;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ dependencies {
2323
dockerTestImplementation("org.testcontainers:neo4j")
2424
dockerTestImplementation("org.testcontainers:testcontainers")
2525

26+
optional(project(":spring-boot-project:spring-boot-jetty"))
2627
optional(project(":spring-boot-project:spring-boot-tomcat"))
2728
optional(project(":spring-boot-project:spring-boot-undertow"))
2829
optional("org.apache.cassandra:java-driver-core") {

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/jetty/AbstractJettyMetricsBinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
import org.eclipse.jetty.server.Server;
2020

2121
import org.springframework.boot.context.event.ApplicationStartedEvent;
22+
import org.springframework.boot.jetty.JettyWebServer;
2223
import org.springframework.boot.web.context.WebServerApplicationContext;
2324
import org.springframework.boot.web.server.WebServer;
24-
import org.springframework.boot.web.server.jetty.JettyWebServer;
2525
import org.springframework.context.ApplicationContext;
2626
import org.springframework.context.ApplicationListener;
2727

spring-boot-project/spring-boot-all-integration-tests/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description = "Spring Boot Integration Tests"
66

77
dependencies {
88
testImplementation(project(":spring-boot-project:spring-boot-all"))
9+
testImplementation(project(":spring-boot-project:spring-boot-jetty"))
910
testImplementation(project(":spring-boot-project:spring-boot-tomcat"))
1011
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
1112
testImplementation(project(":spring-boot-project:spring-boot-undertow"))

spring-boot-project/spring-boot-all-integration-tests/src/test/java/org/springframework/boot/web/servlet/context/ServletWebServerMvcIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
import org.junit.jupiter.api.AfterEach;
2222
import org.junit.jupiter.api.Test;
2323

24+
import org.springframework.boot.jetty.servlet.JettyServletWebServerFactory;
2425
import org.springframework.boot.testsupport.classpath.resources.WithResource;
2526
import org.springframework.boot.testsupport.web.servlet.DirtiesUrlFactories;
2627
import org.springframework.boot.tomcat.servlet.TomcatServletWebServerFactory;
2728
import org.springframework.boot.undertow.servlet.UndertowServletWebServerFactory;
2829
import org.springframework.boot.web.server.WebServer;
2930
import org.springframework.boot.web.server.servlet.ServletWebServerFactory;
30-
import org.springframework.boot.web.server.servlet.jetty.JettyServletWebServerFactory;
3131
import org.springframework.boot.web.servlet.ServletRegistrationBean;
3232
import org.springframework.context.annotation.Bean;
3333
import org.springframework.context.annotation.Configuration;

0 commit comments

Comments
 (0)