Skip to content

Commit 80c04f8

Browse files
committed
Move code out of spring-boot-actuator-autoconfigure-all
1 parent 91c516d commit 80c04f8

File tree

84 files changed

+342
-470
lines changed

Some content is hidden

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

84 files changed

+342
-470
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure-all/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 1 addition & 391 deletions
Large diffs are not rendered by default.

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,10 @@
1-
org.springframework.boot.actuate.autoconfigure.audit.AuditAutoConfiguration
2-
org.springframework.boot.actuate.autoconfigure.audit.AuditEventsEndpointAutoConfiguration
3-
org.springframework.boot.actuate.autoconfigure.availability.AvailabilityHealthContributorAutoConfiguration
4-
org.springframework.boot.actuate.autoconfigure.availability.AvailabilityProbesAutoConfiguration
5-
org.springframework.boot.actuate.autoconfigure.beans.BeansEndpointAutoConfiguration
61
org.springframework.boot.actuate.autoconfigure.cloudfoundry.reactive.ReactiveCloudFoundryActuatorAutoConfiguration
72
org.springframework.boot.actuate.autoconfigure.cloudfoundry.servlet.CloudFoundryActuatorAutoConfiguration
8-
org.springframework.boot.actuate.autoconfigure.condition.ConditionsReportEndpointAutoConfiguration
9-
org.springframework.boot.actuate.autoconfigure.context.ShutdownEndpointAutoConfiguration
10-
org.springframework.boot.actuate.autoconfigure.context.properties.ConfigurationPropertiesReportEndpointAutoConfiguration
11-
org.springframework.boot.actuate.autoconfigure.endpoint.jackson.JacksonEndpointAutoConfiguration
12-
org.springframework.boot.actuate.autoconfigure.endpoint.jmx.JmxEndpointAutoConfiguration
13-
org.springframework.boot.actuate.autoconfigure.env.EnvironmentEndpointAutoConfiguration
14-
org.springframework.boot.actuate.autoconfigure.management.HeapDumpWebEndpointAutoConfiguration
15-
org.springframework.boot.actuate.autoconfigure.management.ThreadDumpEndpointAutoConfiguration
163
org.springframework.boot.actuate.autoconfigure.observability.ObservabilityAutoConfiguration
17-
org.springframework.boot.actuate.autoconfigure.sbom.SbomEndpointAutoConfiguration
18-
org.springframework.boot.actuate.autoconfigure.scheduling.ScheduledTasksEndpointAutoConfiguration
194
org.springframework.boot.actuate.autoconfigure.security.reactive.ReactiveManagementWebSecurityAutoConfiguration
205
org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration
216
org.springframework.boot.actuate.autoconfigure.ssl.SslHealthContributorAutoConfiguration
227
org.springframework.boot.actuate.autoconfigure.ssl.SslObservabilityAutoConfiguration
23-
org.springframework.boot.actuate.autoconfigure.startup.StartupEndpointAutoConfiguration
24-
org.springframework.boot.actuate.autoconfigure.system.DiskSpaceHealthContributorAutoConfiguration
258
org.springframework.boot.actuate.autoconfigure.tracing.BraveAutoConfiguration
269
org.springframework.boot.actuate.autoconfigure.tracing.MicrometerTracingAutoConfiguration
2710
org.springframework.boot.actuate.autoconfigure.tracing.NoopTracerAutoConfiguration

spring-boot-project/spring-boot-actuator-autoconfigure-all/src/test/resources/org/springframework/boot/actuate/autoconfigure/flyway/V1__init.sql

Lines changed: 0 additions & 1 deletion
This file was deleted.

spring-boot-project/spring-boot-actuator-autoconfigure-all/src/test/resources/org/springframework/boot/actuate/autoconfigure/liquibase/db.changelog-master.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

spring-boot-project/spring-boot-actuator-autoconfigure-all/src/test/resources/org/springframework/boot/actuate/autoconfigure/logging/sample.log

Lines changed: 0 additions & 31 deletions
This file was deleted.

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ description = "Spring Boot Actuator AutoConfigure"
1111
dependencies {
1212
api(project(":spring-boot-project:spring-boot-actuator"))
1313
api(project(":spring-boot-project:spring-boot-autoconfigure"))
14+
15+
implementation("com.fasterxml.jackson.core:jackson-databind")
16+
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
1417

1518
optional(project(":spring-boot-project:spring-boot-web-server"))
1619

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
{
22
"groups": [],
33
"properties": [
4+
{
5+
"name": "info",
6+
"type": "java.util.Map<java.lang.String,java.lang.Object>",
7+
"description": "Arbitrary properties to add to the info endpoint."
8+
},
9+
{
10+
"name": "management.auditevents.enabled",
11+
"type": "java.lang.Boolean",
12+
"description": "Whether to enable storage of audit events.",
13+
"defaultValue": true
14+
},
415
{
516
"name": "management.cloudfoundry.enabled",
617
"type": "java.lang.Boolean",
@@ -59,11 +70,156 @@
5970
"since": "3.4.0"
6071
}
6172
},
73+
{
74+
"name": "management.endpoints.jackson.isolated-object-mapper",
75+
"type": "java.lang.Boolean",
76+
"description": "Whether to use an isolated object mapper to serialize endpoint JSON.",
77+
"defaultValue": true
78+
},
79+
{
80+
"name": "management.endpoints.jmx.domain",
81+
"defaultValue": "org.springframework.boot"
82+
},
83+
{
84+
"name": "management.endpoints.jmx.exposure.include",
85+
"defaultValue": "health"
86+
},
87+
{
88+
"name": "management.endpoints.jmx.unique-names",
89+
"type": "java.lang.Boolean",
90+
"description": "Whether unique runtime object names should be ensured.",
91+
"deprecation": {
92+
"replacement": "spring.jmx.unique-names",
93+
"level": "error"
94+
}
95+
},
6296
{
6397
"name": "management.endpoints.web.exposure.include",
6498
"defaultValue": [
6599
"health"
66100
]
101+
},
102+
{
103+
"name": "management.health.defaults.enabled",
104+
"type": "java.lang.Boolean",
105+
"description": "Whether to enable default health indicators.",
106+
"defaultValue": true
107+
},
108+
{
109+
"name": "management.health.diskspace.enabled",
110+
"type": "java.lang.Boolean",
111+
"description": "Whether to enable disk space health check.",
112+
"defaultValue": true
113+
},
114+
{
115+
"name": "management.health.livenessstate.enabled",
116+
"type": "java.lang.Boolean",
117+
"description": "Whether to enable liveness state health check.",
118+
"defaultValue": false
119+
},
120+
{
121+
"name": "management.health.ping.enabled",
122+
"type": "java.lang.Boolean",
123+
"description": "Whether to enable ping health check.",
124+
"defaultValue": true
125+
},
126+
{
127+
"name": "management.health.probes.enabled",
128+
"type": "java.lang.Boolean",
129+
"description": "Whether to enable liveness and readiness probes.",
130+
"defaultValue": false,
131+
"deprecation": {
132+
"replacement": "management.endpoint.health.probes.enabled"
133+
}
134+
},
135+
{
136+
"name": "management.health.readinessstate.enabled",
137+
"type": "java.lang.Boolean",
138+
"description": "Whether to enable readiness state health check.",
139+
"defaultValue": false
140+
},
141+
{
142+
"name": "management.info.build.enabled",
143+
"type": "java.lang.Boolean",
144+
"description": "Whether to enable build info.",
145+
"defaultValue": true
146+
},
147+
{
148+
"name": "management.info.defaults.enabled",
149+
"type": "java.lang.Boolean",
150+
"description": "Whether to enable default info contributors.",
151+
"defaultValue": true
152+
},
153+
{
154+
"name": "management.info.env.enabled",
155+
"type": "java.lang.Boolean",
156+
"description": "Whether to enable environment info.",
157+
"defaultValue": false
158+
},
159+
{
160+
"name": "management.info.git.enabled",
161+
"type": "java.lang.Boolean",
162+
"description": "Whether to enable git info.",
163+
"defaultValue": true
164+
},
165+
{
166+
"name": "management.info.java.enabled",
167+
"type": "java.lang.Boolean",
168+
"description": "Whether to enable Java info.",
169+
"defaultValue": false
170+
},
171+
{
172+
"name": "management.info.os.enabled",
173+
"type": "java.lang.Boolean",
174+
"description": "Whether to enable Operating System info.",
175+
"defaultValue": false
176+
},
177+
{
178+
"name": "management.info.process.enabled",
179+
"type": "java.lang.Boolean",
180+
"description": "Whether to enable process info.",
181+
"defaultValue": false
182+
},
183+
{
184+
"name": "management.info.ssl.enabled",
185+
"type": "java.lang.Boolean",
186+
"description": "Whether to enable SSL certificate info.",
187+
"defaultValue": false
188+
},
189+
{
190+
"name": "management.server.add-application-context-header",
191+
"type": "java.lang.Boolean",
192+
"description": "Add the \"X-Application-Context\" HTTP header in each response.",
193+
"defaultValue": false
194+
},
195+
{
196+
"name": "management.server.servlet.context-path",
197+
"type": "java.lang.String",
198+
"deprecation": {
199+
"replacement": "management.server.base-path",
200+
"level": "error"
201+
}
202+
},
203+
{
204+
"name": "management.trace.http.enabled",
205+
"deprecation": {
206+
"replacement": "management.httpexchanges.recording.enabled",
207+
"level": "error"
208+
}
209+
},
210+
{
211+
"name": "management.trace.http.include",
212+
"deprecation": {
213+
"replacement": "management.httpexchanges.recording.include",
214+
"level": "error"
215+
}
216+
},
217+
{
218+
"name": "management.trace.include",
219+
"deprecation": {
220+
"replacement": "management.httpexchanges.recording.include",
221+
"level": "error"
222+
}
67223
}
68224
],
69225
"hints": [
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
1+
org.springframework.boot.actuate.autoconfigure.audit.AuditAutoConfiguration
2+
org.springframework.boot.actuate.autoconfigure.audit.AuditEventsEndpointAutoConfiguration
3+
org.springframework.boot.actuate.autoconfigure.availability.AvailabilityHealthContributorAutoConfiguration
4+
org.springframework.boot.actuate.autoconfigure.availability.AvailabilityProbesAutoConfiguration
5+
org.springframework.boot.actuate.autoconfigure.beans.BeansEndpointAutoConfiguration
6+
org.springframework.boot.actuate.autoconfigure.condition.ConditionsReportEndpointAutoConfiguration
7+
org.springframework.boot.actuate.autoconfigure.context.ShutdownEndpointAutoConfiguration
8+
org.springframework.boot.actuate.autoconfigure.context.properties.ConfigurationPropertiesReportEndpointAutoConfiguration
19
org.springframework.boot.actuate.autoconfigure.endpoint.EndpointAutoConfiguration
10+
org.springframework.boot.actuate.autoconfigure.endpoint.jackson.JacksonEndpointAutoConfiguration
11+
org.springframework.boot.actuate.autoconfigure.endpoint.jmx.JmxEndpointAutoConfiguration
212
org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointAutoConfiguration
13+
org.springframework.boot.actuate.autoconfigure.env.EnvironmentEndpointAutoConfiguration
314
org.springframework.boot.actuate.autoconfigure.health.HealthContributorAutoConfiguration
415
org.springframework.boot.actuate.autoconfigure.health.HealthEndpointAutoConfiguration
516
org.springframework.boot.actuate.autoconfigure.info.InfoContributorAutoConfiguration
617
org.springframework.boot.actuate.autoconfigure.info.InfoEndpointAutoConfiguration
718
org.springframework.boot.actuate.autoconfigure.logging.LogFileWebEndpointAutoConfiguration
819
org.springframework.boot.actuate.autoconfigure.logging.LoggersEndpointAutoConfiguration
20+
org.springframework.boot.actuate.autoconfigure.management.HeapDumpWebEndpointAutoConfiguration
21+
org.springframework.boot.actuate.autoconfigure.management.ThreadDumpEndpointAutoConfiguration
22+
org.springframework.boot.actuate.autoconfigure.sbom.SbomEndpointAutoConfiguration
23+
org.springframework.boot.actuate.autoconfigure.scheduling.ScheduledTasksEndpointAutoConfiguration
24+
org.springframework.boot.actuate.autoconfigure.startup.StartupEndpointAutoConfiguration
25+
org.springframework.boot.actuate.autoconfigure.system.DiskSpaceHealthContributorAutoConfiguration
926
org.springframework.boot.actuate.autoconfigure.web.server.ManagementContextAutoConfiguration
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import java.util.Arrays;
2020
import java.util.Collections;
2121

22-
import jakarta.annotation.PostConstruct;
2322
import org.junit.jupiter.api.Test;
2423

2524
import org.springframework.boot.actuate.autoconfigure.condition.ConditionsReportEndpoint.ContextConditionsDescriptor;
@@ -66,10 +65,10 @@ static class Config {
6665

6766
Config(ConfigurableApplicationContext context) {
6867
this.context = context;
68+
setupAutoConfigurationReport();
6969
}
7070

71-
@PostConstruct
72-
void setupAutoConfigurationReport() {
71+
private void setupAutoConfigurationReport() {
7372
ConditionEvaluationReport report = ConditionEvaluationReport.get(this.context.getBeanFactory());
7473
report.recordEvaluationCandidates(Arrays.asList("a", "b"));
7574
report.recordConditionEvaluation("a", mock(Condition.class), mock(ConditionOutcome.class));

spring-boot-project/spring-boot-amqp/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"groups": [],
33
"properties": [
4+
{
5+
"name": "management.health.rabbit.enabled",
6+
"type": "java.lang.Boolean",
7+
"description": "Whether to enable RabbitMQ health check.",
8+
"defaultValue": true
9+
},
410
{
511
"name": "spring.rabbitmq.dynamic",
612
"type": "java.lang.Boolean",

spring-boot-project/spring-boot-data-mongodb/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{
2+
"properties": [
3+
{
4+
"name": "management.health.mongo.enabled",
5+
"type": "java.lang.Boolean",
6+
"description": "Whether to enable MongoDB health check.",
7+
"defaultValue": true
8+
}
9+
],
210
"hints": [
311
{
412
"name": "spring.data.mongodb.field-naming-strategy",

spring-boot-project/spring-boot-graphql/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
11
{
22
"groups": [],
33
"properties": [
4+
{
5+
"name": "management.metrics.graphql.autotime.enabled",
6+
"description": "Whether to automatically time web client requests.",
7+
"defaultValue": true,
8+
"deprecation": {
9+
"level": "error",
10+
"reason": "Requests are timed automatically."
11+
}
12+
},
13+
{
14+
"name": "management.metrics.graphql.autotime.percentiles",
15+
"description": "Computed non-aggregable percentiles to publish.",
16+
"deprecation": {
17+
"level": "error",
18+
"reason": "Should be configured globally via management.metrics.distribution.percentiles."
19+
}
20+
},
21+
{
22+
"name": "management.metrics.graphql.autotime.percentiles-histogram",
23+
"description": "Whether percentile histograms should be published.",
24+
"defaultValue": false,
25+
"deprecation": {
26+
"level": "error",
27+
"reason": "Should be configured globally via management.metrics.distribution.percentiles-histogram."
28+
}
29+
},
430
{
531
"name": "spring.graphql.schema.file-extensions",
632
"defaultValue": ".graphqls,.gqls"
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.actuate.autoconfigure.web.jersey;
17+
package org.springframework.boot.jersey.actuate.autoconfigure.web;
1818

1919
import org.glassfish.jersey.server.ResourceConfig;
2020
import org.glassfish.jersey.servlet.ServletContainer;
2121
import org.junit.jupiter.api.Test;
2222

2323
import org.springframework.boot.autoconfigure.AutoConfigurations;
24-
import org.springframework.boot.jersey.actuate.autoconfigure.web.JerseyChildManagementContextConfiguration;
25-
import org.springframework.boot.jersey.actuate.autoconfigure.web.JerseySameManagementContextConfiguration;
26-
import org.springframework.boot.jersey.actuate.autoconfigure.web.ManagementContextResourceConfigCustomizer;
2724
import org.springframework.boot.jersey.autoconfigure.JerseyApplicationPath;
2825
import org.springframework.boot.test.context.FilteredClassLoader;
2926
import org.springframework.boot.test.context.runner.ApplicationContextRunner;

0 commit comments

Comments
 (0)