Skip to content

Commit bb317e6

Browse files
committed
Move Actuator docs into a separate module
1 parent 7740938 commit bb317e6

File tree

68 files changed

+53211
-43
lines changed

Some content is hidden

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

68 files changed

+53211
-43
lines changed

eclipse-thread-dump.txt

Lines changed: 48487 additions & 0 deletions
Large diffs are not rendered by default.

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ include "spring-boot-project:spring-boot"
4343
include "spring-boot-project:spring-boot-activemq"
4444
include "spring-boot-project:spring-boot-actuator"
4545
include "spring-boot-project:spring-boot-actuator-autoconfigure"
46+
include "spring-boot-project:spring-boot-actuator-docs"
4647
include "spring-boot-project:spring-boot-amqp"
4748
include "spring-boot-project:spring-boot-artemis"
4849
include "spring-boot-project:spring-boot-autoconfigure"

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

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
plugins {
22
id "java-library"
3-
id "org.springframework.boot.antora-contributor"
43
id "org.springframework.boot.auto-configuration"
54
id "org.springframework.boot.configuration-properties"
65
id "org.springframework.boot.deployed"
@@ -207,8 +206,6 @@ dependencies {
207206
testImplementation("org.springframework:spring-orm")
208207
testImplementation("org.springframework.data:spring-data-rest-webmvc")
209208
testImplementation("org.springframework.integration:spring-integration-jmx")
210-
testImplementation("org.springframework.restdocs:spring-restdocs-mockmvc")
211-
testImplementation("org.springframework.restdocs:spring-restdocs-webtestclient")
212209
testImplementation("org.springframework.security:spring-security-test")
213210
testImplementation("org.yaml:snakeyaml")
214211

@@ -230,42 +227,4 @@ dependencies {
230227

231228
tasks.named("test") {
232229
jvmArgs += "--add-opens=java.base/java.net=ALL-UNNAMED"
233-
filter {
234-
excludeTestsMatching("*DocumentationTests")
235-
}
236-
}
237-
238-
def documentationTest = tasks.register("documentationTest", Test) {
239-
testClassesDirs = testing.suites.test.sources.output.classesDirs
240-
classpath = testing.suites.test.sources.runtimeClasspath
241-
jvmArgs += "--add-opens=java.base/java.net=ALL-UNNAMED"
242-
filter {
243-
includeTestsMatching("*DocumentationTests")
244-
}
245-
outputs.dir(layout.buildDirectory.dir("generated-snippets"))
246-
develocity {
247-
predictiveTestSelection {
248-
enabled = false
249-
}
250-
}
251-
}
252-
253-
tasks.named("generateAntoraPlaybook") {
254-
antoraExtensions.xref.stubs = ["appendix:.*", "api:.*", "reference:.*"]
255-
}
256-
257-
antoraContributions {
258-
'actuator-rest-api' {
259-
aggregateContent {
260-
from(documentationTest.map { layout.buildDirectory.dir("generated-snippets") }) {
261-
into "modules/api/partials/rest/actuator"
262-
}
263-
}
264-
localAggregateContent {
265-
from(tasks.named("generateAntoraYml")) {
266-
into "modules"
267-
}
268-
}
269-
source()
270-
}
271230
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
plugins {
2+
id "java"
3+
id "org.springframework.boot.antora-contributor"
4+
}
5+
6+
description = "Spring Boot Actuator Docs"
7+
8+
dependencies {
9+
testImplementation(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
10+
testImplementation(project(":spring-boot-project:spring-boot-http-converter"))
11+
testImplementation(project(":spring-boot-project:spring-boot-flyway"))
12+
testImplementation(project(":spring-boot-project:spring-boot-integration"))
13+
testImplementation(project(":spring-boot-project:spring-boot-jackson"))
14+
testImplementation(project(":spring-boot-project:spring-boot-jdbc"))
15+
testImplementation(project(":spring-boot-project:spring-boot-liquibase"))
16+
testImplementation(project(":spring-boot-project:spring-boot-quartz"))
17+
testImplementation(project(":spring-boot-project:spring-boot-reactor-netty"))
18+
testImplementation(project(":spring-boot-project:spring-boot-session"))
19+
testImplementation(project(":spring-boot-project:spring-boot-test"))
20+
testImplementation(project(":spring-boot-project:spring-boot-tomcat"))
21+
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
22+
testImplementation(project(":spring-boot-project:spring-boot-web-server-test"))
23+
testImplementation(project(":spring-boot-project:spring-boot-webflux"))
24+
testImplementation(project(":spring-boot-project:spring-boot-webmvc"))
25+
testImplementation("io.micrometer:micrometer-core")
26+
testImplementation("io.micrometer:micrometer-registry-prometheus")
27+
testImplementation("io.prometheus:prometheus-metrics-exposition-formats")
28+
testImplementation("org.springframework.restdocs:spring-restdocs-mockmvc")
29+
testImplementation("org.springframework.restdocs:spring-restdocs-webtestclient")
30+
31+
testRuntimeOnly("ch.qos.logback:logback-classic")
32+
testRuntimeOnly("com.h2database:h2")
33+
}
34+
35+
tasks.named("generateAntoraPlaybook") {
36+
antoraExtensions.xref.stubs = ["appendix:.*", "api:.*", "reference:.*"]
37+
}
38+
39+
antoraContributions {
40+
'actuator-rest-api' {
41+
aggregateContent {
42+
from(tasks.named('test').map { layout.buildDirectory.dir("generated-snippets") }) {
43+
into "modules/api/partials/rest/actuator"
44+
}
45+
}
46+
localAggregateContent {
47+
from(tasks.named("generateAntoraYml")) {
48+
into "modules"
49+
}
50+
}
51+
source()
52+
}
53+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
com.example.cache.max-size: 1000
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP TABLE IF EXISTS TEST;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
databaseChangeLog:
2+
- changeSet:
3+
id: 1
4+
author: marceloverdijk
5+
changes:
6+
- createTable:
7+
tableName: customer
8+
columns:
9+
- column:
10+
name: id
11+
type: int
12+
autoIncrement: true
13+
constraints:
14+
primaryKey: true
15+
nullable: false
16+
- column:
17+
name: name
18+
type: varchar(50)
19+
constraints:
20+
nullable: false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
. ____ _ __ _ _
2+
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
3+
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
4+
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
5+
' |____| .__|_| |_|_| |_\__, | / / / /
6+
=========|_|==============|___/=/_/_/_/
7+
:: Spring Boot ::
8+
9+
2017-08-08 17:12:30.910 INFO 19866 --- [ main] s.f.SampleWebFreeMarkerApplication : Starting SampleWebFreeMarkerApplication with PID 19866
10+
2017-08-08 17:12:30.913 INFO 19866 --- [ main] s.f.SampleWebFreeMarkerApplication : No active profile set, falling back to default profiles: default
11+
2017-08-08 17:12:30.952 INFO 19866 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@76b10754: startup date [Tue Aug 08 17:12:30 BST 2017]; root of context hierarchy
12+
2017-08-08 17:12:31.878 INFO 19866 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8080 (http)
13+
2017-08-08 17:12:31.889 INFO 19866 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
14+
2017-08-08 17:12:31.890 INFO 19866 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.16
15+
2017-08-08 17:12:31.978 INFO 19866 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
16+
2017-08-08 17:12:31.978 INFO 19866 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 1028 ms
17+
2017-08-08 17:12:32.080 INFO 19866 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
18+
2017-08-08 17:12:32.084 INFO 19866 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
19+
2017-08-08 17:12:32.084 INFO 19866 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
20+
2017-08-08 17:12:32.084 INFO 19866 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
21+
2017-08-08 17:12:32.084 INFO 19866 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
22+
2017-08-08 17:12:32.349 INFO 19866 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@76b10754: startup date [Tue Aug 08 17:12:30 BST 2017]; root of context hierarchy
23+
2017-08-08 17:12:32.420 INFO 19866 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(jakarta.servlet.http.HttpServletRequest)
24+
2017-08-08 17:12:32.421 INFO 19866 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(jakarta.servlet.http.HttpServletRequest,jakarta.servlet.http.HttpServletResponse)
25+
2017-08-08 17:12:32.444 INFO 19866 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
26+
2017-08-08 17:12:32.444 INFO 19866 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
27+
2017-08-08 17:12:32.471 INFO 19866 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
28+
2017-08-08 17:12:32.600 INFO 19866 --- [ main] o.s.w.s.v.f.FreeMarkerConfigurer : ClassTemplateLoader for Spring macros added to FreeMarker configuration
29+
2017-08-08 17:12:32.681 INFO 19866 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
30+
2017-08-08 17:12:32.744 INFO 19866 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 8080 (http)
31+
2017-08-08 17:12:32.750 INFO 19866 --- [ main] s.f.SampleWebFreeMarkerApplication : Started SampleWebFreeMarkerApplication in 2.172 seconds (JVM running for 2.479)

0 commit comments

Comments
 (0)