Skip to content

Commit 5dbd0ee

Browse files
committed
Move Jetty management server support to spring-boot-jetty
1 parent a15a6fd commit 5dbd0ee

14 files changed

+16
-16
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ dependencies {
3636
optional(project(":spring-boot-project:spring-boot-http-codec"))
3737
optional(project(":spring-boot-project:spring-boot-jackson"))
3838
optional(project(":spring-boot-project:spring-boot-jersey"))
39-
optional(project(":spring-boot-project:spring-boot-jetty"))
4039
optional(project(":spring-boot-project:spring-boot-jsonb"))
4140
optional(project(":spring-boot-project:spring-boot-kafka"))
4241
optional(project(":spring-boot-project:spring-boot-metrics"))

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
@@ -2,8 +2,6 @@ org.springframework.boot.actuate.autoconfigure.endpoint.web.reactive.WebFluxEndp
22
org.springframework.boot.actuate.autoconfigure.endpoint.web.servlet.WebMvcEndpointManagementContextConfiguration
33
org.springframework.boot.actuate.autoconfigure.security.servlet.SecurityRequestMatchersManagementContextConfiguration
44
org.springframework.boot.actuate.autoconfigure.web.reactive.ReactiveManagementChildContextConfiguration
5-
org.springframework.boot.actuate.autoconfigure.web.server.jetty.JettyReactiveManagementChildContextConfiguration
6-
org.springframework.boot.actuate.autoconfigure.web.server.jetty.JettyServletManagementChildContextConfiguration
75
org.springframework.boot.actuate.autoconfigure.web.server.undertow.UndertowReactiveManagementChildContextConfiguration
86
org.springframework.boot.actuate.autoconfigure.web.server.undertow.UndertowServletManagementChildContextConfiguration
97
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
@@ -69,8 +69,6 @@ org.springframework.boot.actuate.autoconfigure.wavefront.WavefrontAutoConfigurat
6969
org.springframework.boot.actuate.autoconfigure.web.exchanges.HttpExchangesAutoConfiguration
7070
org.springframework.boot.actuate.autoconfigure.web.exchanges.HttpExchangesEndpointAutoConfiguration
7171
org.springframework.boot.actuate.autoconfigure.web.mappings.MappingsEndpointAutoConfiguration
72-
org.springframework.boot.actuate.autoconfigure.web.server.jetty.JettyReactiveManagementContextAutoConfiguration
73-
org.springframework.boot.actuate.autoconfigure.web.server.jetty.JettyServletManagementContextAutoConfiguration
7472
org.springframework.boot.actuate.autoconfigure.web.server.netty.NettyReactiveManagementContextAutoConfiguration
7573
org.springframework.boot.actuate.autoconfigure.web.server.undertow.UndertowReactiveManagementContextAutoConfiguration
7674
org.springframework.boot.actuate.autoconfigure.web.server.undertow.UndertowServletManagementContextAutoConfiguration

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies {
1414
api("org.eclipse.jetty.ee10:jetty-ee10-webapp")
1515

1616
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
17+
optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
1718
optional(project(":spring-boot-project:spring-boot-metrics"))
1819
optional("org.apache.tomcat.embed:tomcat-embed-jasper")
1920
optional("org.eclipse.jetty:jetty-alpn-conscrypt-server")

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

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.jetty;
17+
package org.springframework.boot.jetty.actuate.autoconfigure.web.server;
1818

1919
import java.io.File;
2020

spring-boot-project/spring-boot-actuator-autoconfigure-all/src/main/java/org/springframework/boot/actuate/autoconfigure/web/server/jetty/JettyManagementServerProperties.java renamed to spring-boot-project/spring-boot-jetty/src/main/java/org/springframework/boot/jetty/actuate/autoconfigure/web/server/JettyManagementServerProperties.java

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.jetty;
17+
package org.springframework.boot.jetty.actuate.autoconfigure.web.server;
1818

1919
import org.springframework.boot.context.properties.ConfigurationProperties;
2020

spring-boot-project/spring-boot-actuator-autoconfigure-all/src/main/java/org/springframework/boot/actuate/autoconfigure/web/server/jetty/JettyReactiveManagementChildContextConfiguration.java renamed to spring-boot-project/spring-boot-jetty/src/main/java/org/springframework/boot/jetty/actuate/autoconfigure/web/server/JettyReactiveManagementChildContextConfiguration.java

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.jetty;
17+
package org.springframework.boot.jetty.actuate.autoconfigure.web.server;
1818

1919
import org.eclipse.jetty.server.Server;
2020

spring-boot-project/spring-boot-actuator-autoconfigure-all/src/main/java/org/springframework/boot/actuate/autoconfigure/web/server/jetty/JettyReactiveManagementContextAutoConfiguration.java renamed to spring-boot-project/spring-boot-jetty/src/main/java/org/springframework/boot/jetty/actuate/autoconfigure/web/server/JettyReactiveManagementContextAutoConfiguration.java

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.jetty;
17+
package org.springframework.boot.jetty.actuate.autoconfigure.web.server;
1818

1919
import org.eclipse.jetty.server.Server;
2020

@@ -37,7 +37,7 @@
3737
* @since 4.0.0
3838
*/
3939
@AutoConfiguration
40-
@ConditionalOnClass(Server.class)
40+
@ConditionalOnClass({ Server.class, ManagementContextFactory.class })
4141
@ConditionalOnWebApplication(type = Type.REACTIVE)
4242
@ConditionalOnManagementPort(ManagementPortType.DIFFERENT)
4343
public class JettyReactiveManagementContextAutoConfiguration {

spring-boot-project/spring-boot-actuator-autoconfigure-all/src/main/java/org/springframework/boot/actuate/autoconfigure/web/server/jetty/JettyServletManagementChildContextConfiguration.java renamed to spring-boot-project/spring-boot-jetty/src/main/java/org/springframework/boot/jetty/actuate/autoconfigure/web/server/JettyServletManagementChildContextConfiguration.java

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.jetty;
17+
package org.springframework.boot.jetty.actuate.autoconfigure.web.server;
1818

1919
import org.eclipse.jetty.server.Server;
2020

spring-boot-project/spring-boot-actuator-autoconfigure-all/src/main/java/org/springframework/boot/actuate/autoconfigure/web/server/jetty/JettyServletManagementContextAutoConfiguration.java renamed to spring-boot-project/spring-boot-jetty/src/main/java/org/springframework/boot/jetty/actuate/autoconfigure/web/server/JettyServletManagementContextAutoConfiguration.java

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.jetty;
17+
package org.springframework.boot.jetty.actuate.autoconfigure.web.server;
1818

1919
import org.eclipse.jetty.server.Server;
2020

@@ -37,7 +37,7 @@
3737
* @since 4.0.0
3838
*/
3939
@AutoConfiguration
40-
@ConditionalOnClass(Server.class)
40+
@ConditionalOnClass({ Server.class, ManagementContextFactory.class })
4141
@ConditionalOnWebApplication(type = Type.SERVLET)
4242
@ConditionalOnManagementPort(ManagementPortType.DIFFERENT)
4343
public class JettyServletManagementContextAutoConfiguration {

0 commit comments

Comments
 (0)