Skip to content

Commit dcc5a82

Browse files
wilkinsonaphilwebb
authored andcommitted
Move Jetty management server support to spring-boot-jetty
Issue: 46075
1 parent f83f7a8 commit dcc5a82

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
@@ -53,7 +53,6 @@ dependencies {
5353
optional(project(":spring-boot-project:spring-boot-http-codec"))
5454
optional(project(":spring-boot-project:spring-boot-jackson"))
5555
optional(project(":spring-boot-project:spring-boot-jersey"))
56-
optional(project(":spring-boot-project:spring-boot-jetty"))
5756
optional(project(":spring-boot-project:spring-boot-jsonb"))
5857
optional(project(":spring-boot-project:spring-boot-kafka"))
5958
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
@@ -66,8 +66,6 @@ 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.jetty.JettyReactiveManagementContextAutoConfiguration
70-
org.springframework.boot.actuate.autoconfigure.web.server.jetty.JettyServletManagementContextAutoConfiguration
7169
org.springframework.boot.actuate.autoconfigure.web.server.netty.NettyReactiveManagementContextAutoConfiguration
7270
org.springframework.boot.actuate.autoconfigure.web.server.undertow.UndertowReactiveManagementContextAutoConfiguration
7371
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
@@ -31,6 +31,7 @@ dependencies {
3131
api("org.eclipse.jetty.ee10:jetty-ee10-webapp")
3232

3333
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
34+
optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
3435
optional(project(":spring-boot-project:spring-boot-metrics"))
3536
optional("org.apache.tomcat.embed:tomcat-embed-jasper")
3637
optional("org.eclipse.jetty:jetty-alpn-conscrypt-server")
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

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

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

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 {
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

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)