2025-03-26 00:28:27 +08:00
|
|
|
import org.springframework.boot.build.docs.ConfigureJavadocLinks
|
|
|
|
|
2020-01-10 21:48:43 +08:00
|
|
|
plugins {
|
2024-08-21 19:51:23 +08:00
|
|
|
id "dev.adamko.dokkatoo-html"
|
2020-07-09 18:21:03 +08:00
|
|
|
id "java"
|
2024-03-20 12:48:08 +08:00
|
|
|
id "org.antora"
|
2024-11-01 01:36:51 +08:00
|
|
|
id "org.springframework.boot.antora-contributor"
|
|
|
|
id "org.springframework.boot.antora-dependencies"
|
2020-01-23 03:24:37 +08:00
|
|
|
id "org.springframework.boot.deployed"
|
2022-02-05 08:00:32 +08:00
|
|
|
id 'org.jetbrains.kotlin.jvm'
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
2020-05-15 05:51:38 +08:00
|
|
|
description = "Spring Boot Docs"
|
|
|
|
|
2020-01-10 21:48:43 +08:00
|
|
|
configurations {
|
|
|
|
autoConfiguration
|
|
|
|
configurationProperties
|
2022-08-04 15:45:52 +08:00
|
|
|
remoteSpringApplicationExample
|
2025-03-25 22:44:34 +08:00
|
|
|
resolvedBom
|
2022-08-04 15:45:52 +08:00
|
|
|
springApplicationExample
|
2020-01-10 21:48:43 +08:00
|
|
|
testSlices
|
2024-07-11 19:17:25 +08:00
|
|
|
all {
|
|
|
|
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
|
|
|
|
if (details.requested.module.group == "org.apache.kafka" && details.requested.module.name == "kafka-server-common") {
|
|
|
|
details.artifactSelection {
|
|
|
|
selectArtifact(DependencyArtifact.DEFAULT_TYPE, null, null)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
2020-07-09 18:21:03 +08:00
|
|
|
jar {
|
|
|
|
enabled = false
|
|
|
|
}
|
|
|
|
|
|
|
|
javadoc {
|
|
|
|
enabled = false
|
2020-05-14 16:09:02 +08:00
|
|
|
}
|
|
|
|
|
2021-09-23 18:35:48 +08:00
|
|
|
javadocJar {
|
|
|
|
enabled = false
|
|
|
|
}
|
|
|
|
|
|
|
|
sourcesJar {
|
|
|
|
enabled = false
|
|
|
|
}
|
|
|
|
|
2020-05-14 16:09:02 +08:00
|
|
|
plugins.withType(EclipsePlugin) {
|
2024-08-21 19:51:23 +08:00
|
|
|
eclipse.classpath { classpath ->
|
2020-05-14 16:09:02 +08:00
|
|
|
classpath.plusConfigurations.add(configurations.getByName(sourceSets.main.runtimeClasspathConfigurationName))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-10 21:48:43 +08:00
|
|
|
dependencies {
|
2025-03-18 21:28:53 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-activemq", configuration: "autoConfigurationMetadata"))
|
2020-01-23 06:09:17 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-actuator-autoconfigure", configuration: "autoConfigurationMetadata"))
|
2025-03-14 23:27:21 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-amqp", configuration: "autoConfigurationMetadata"))
|
2025-03-18 22:00:11 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-artemis", configuration: "autoConfigurationMetadata"))
|
2025-03-18 22:17:07 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-autoconfigure", configuration: "autoConfigurationMetadata"))
|
2025-03-06 19:44:37 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-autoconfigure-all", configuration: "autoConfigurationMetadata"))
|
2020-01-23 06:09:17 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-devtools", configuration: "autoConfigurationMetadata"))
|
2025-03-21 15:49:18 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-flyway", configuration: "autoConfigurationMetadata"))
|
2025-03-19 22:00:24 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-freemarker", configuration: "autoConfigurationMetadata"))
|
2025-03-14 23:27:21 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-jackson", configuration: "autoConfigurationMetadata"))
|
2025-03-18 19:11:17 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-jdbc", configuration: "autoConfigurationMetadata"))
|
2025-03-14 01:01:55 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-jetty", configuration: "autoConfigurationMetadata"))
|
2025-03-18 18:37:00 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-jms", configuration: "autoConfigurationMetadata"))
|
2025-03-18 17:03:45 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-jsonb", configuration: "autoConfigurationMetadata"))
|
2025-04-12 05:25:07 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-liquibase", configuration: "autoConfigurationMetadata"))
|
2025-03-18 03:13:20 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-mail", configuration: "autoConfigurationMetadata"))
|
2025-03-14 18:02:53 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-reactor-netty", configuration: "autoConfigurationMetadata"))
|
2023-04-17 02:04:26 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-testcontainers", configuration: "autoConfigurationMetadata"))
|
2025-03-12 01:41:17 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-tomcat", configuration: "autoConfigurationMetadata"))
|
2025-03-18 21:22:09 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-tx", configuration: "autoConfigurationMetadata"))
|
2025-03-13 22:35:24 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-undertow", configuration: "autoConfigurationMetadata"))
|
2025-03-19 21:43:09 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-validation", configuration: "autoConfigurationMetadata"))
|
2020-01-23 03:24:37 +08:00
|
|
|
|
2020-01-23 06:09:17 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot", configuration: "configurationPropertiesMetadata"))
|
2025-03-18 21:28:53 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-activemq", configuration: "configurationPropertiesMetadata"))
|
2020-01-23 06:09:17 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-actuator", configuration: "configurationPropertiesMetadata"))
|
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-actuator-autoconfigure", configuration: "configurationPropertiesMetadata"))
|
2025-03-14 23:27:21 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-amqp", configuration: "configurationPropertiesMetadata"))
|
2025-03-18 22:00:11 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-artemis", configuration: "configurationPropertiesMetadata"))
|
2020-01-23 06:09:17 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-autoconfigure", configuration: "configurationPropertiesMetadata"))
|
2025-03-06 19:44:37 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-autoconfigure-all", configuration: "configurationPropertiesMetadata"))
|
2020-01-23 06:09:17 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-devtools", configuration: "configurationPropertiesMetadata"))
|
2025-03-18 22:17:07 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-docker-compose", configuration: "configurationPropertiesMetadata"))
|
2025-03-21 15:49:18 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-flyway", configuration: "configurationPropertiesMetadata"))
|
2025-03-19 22:00:24 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-freemarker", configuration: "configurationPropertiesMetadata"))
|
2025-03-14 23:27:21 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-jackson", configuration: "configurationPropertiesMetadata"))
|
2025-03-18 19:11:17 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-jdbc", configuration: "configurationPropertiesMetadata"))
|
2025-03-14 01:01:55 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-jetty", configuration: "configurationPropertiesMetadata"))
|
2025-03-18 18:37:00 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-jms", configuration: "configurationPropertiesMetadata"))
|
2025-04-12 05:25:07 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-liquibase", configuration: "configurationPropertiesMetadata"))
|
2025-03-18 03:13:20 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-mail", configuration: "configurationPropertiesMetadata"))
|
2025-03-14 18:02:53 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-reactor-netty", configuration: "configurationPropertiesMetadata"))
|
2020-12-16 01:20:21 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-test-autoconfigure", configuration: "configurationPropertiesMetadata"))
|
2023-10-15 14:44:45 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-testcontainers", configuration: "configurationPropertiesMetadata"))
|
2025-03-12 01:41:17 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-tomcat", configuration: "configurationPropertiesMetadata"))
|
2025-03-18 21:22:09 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-tx", configuration: "configurationPropertiesMetadata"))
|
2025-03-13 22:35:24 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-undertow", configuration: "configurationPropertiesMetadata"))
|
2020-01-23 03:24:37 +08:00
|
|
|
|
2025-03-01 04:54:04 +08:00
|
|
|
dokkatoo(project(path: ":spring-boot-project:spring-boot-all"))
|
2024-05-10 21:53:48 +08:00
|
|
|
dokkatoo(project(path: ":spring-boot-project:spring-boot-test"))
|
|
|
|
|
2020-05-14 16:09:02 +08:00
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-actuator"))
|
2021-05-03 06:59:28 +08:00
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-actuator-autoconfigure"))
|
2025-03-15 01:01:17 +08:00
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-amqp"))
|
2025-03-06 19:44:37 +08:00
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-autoconfigure-all"))
|
2025-03-18 22:17:07 +08:00
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-devtools"))
|
2023-04-07 22:33:48 +08:00
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-docker-compose"))
|
2025-03-14 23:27:21 +08:00
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-jackson"))
|
2025-03-18 19:11:17 +08:00
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-jdbc"))
|
2025-03-18 18:37:00 +08:00
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-jms"))
|
2025-03-18 17:03:45 +08:00
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-jsonb"))
|
2025-03-14 18:02:53 +08:00
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-reactor-netty"))
|
2020-05-14 16:09:02 +08:00
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-test"))
|
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-test-autoconfigure"))
|
2023-04-11 11:15:39 +08:00
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-testcontainers"))
|
2025-03-03 19:47:30 +08:00
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-tomcat"))
|
2025-03-18 22:17:07 +08:00
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-tools:spring-boot-cli"))
|
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-tools:spring-boot-loader-tools"))
|
2025-03-13 22:35:24 +08:00
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-undertow"))
|
2021-02-04 09:51:32 +08:00
|
|
|
implementation("ch.qos.logback:logback-classic")
|
2025-02-14 19:52:18 +08:00
|
|
|
implementation("com.redis:testcontainers-redis")
|
2020-05-14 16:09:02 +08:00
|
|
|
implementation("com.zaxxer:HikariCP")
|
2023-10-10 23:39:12 +08:00
|
|
|
implementation("io.micrometer:micrometer-jakarta9")
|
2023-06-29 17:30:58 +08:00
|
|
|
implementation("io.micrometer:micrometer-tracing")
|
2021-05-03 06:59:28 +08:00
|
|
|
implementation("io.micrometer:micrometer-registry-graphite")
|
|
|
|
implementation("io.micrometer:micrometer-registry-jmx")
|
2024-09-05 21:16:00 +08:00
|
|
|
implementation("io.opentelemetry.instrumentation:opentelemetry-logback-appender-1.0")
|
2020-08-04 19:26:47 +08:00
|
|
|
implementation("io.projectreactor.netty:reactor-netty-http")
|
2021-01-08 22:46:55 +08:00
|
|
|
implementation("io.undertow:undertow-core")
|
2021-02-04 09:51:32 +08:00
|
|
|
implementation("jakarta.annotation:jakarta.annotation-api")
|
2021-04-24 05:19:13 +08:00
|
|
|
implementation("jakarta.jms:jakarta.jms-api")
|
2021-11-13 01:54:32 +08:00
|
|
|
implementation("jakarta.persistence:jakarta.persistence-api")
|
2020-05-14 16:09:02 +08:00
|
|
|
implementation("jakarta.servlet:jakarta.servlet-api")
|
2021-11-15 22:49:36 +08:00
|
|
|
implementation("jakarta.validation:jakarta.validation-api")
|
2022-09-21 20:21:53 +08:00
|
|
|
implementation("org.apache.httpcomponents.client5:httpclient5")
|
2021-11-13 01:54:32 +08:00
|
|
|
implementation("org.apache.commons:commons-dbcp2") {
|
|
|
|
exclude group: "commons-logging", module: "commons-logging"
|
|
|
|
}
|
2020-05-14 16:09:02 +08:00
|
|
|
implementation("org.apache.kafka:kafka-streams")
|
2021-02-04 09:51:32 +08:00
|
|
|
implementation("org.apache.logging.log4j:log4j-to-slf4j")
|
2020-05-14 16:09:02 +08:00
|
|
|
implementation("org.apache.tomcat.embed:tomcat-embed-core")
|
|
|
|
implementation("org.assertj:assertj-core")
|
2022-03-21 16:28:44 +08:00
|
|
|
implementation("org.cache2k:cache2k-spring")
|
2022-03-18 20:34:13 +08:00
|
|
|
implementation("org.apache.groovy:groovy")
|
2022-08-08 22:45:20 +08:00
|
|
|
implementation("org.glassfish.jersey.containers:jersey-container-servlet-core")
|
|
|
|
implementation("org.glassfish.jersey.core:jersey-server")
|
2022-07-09 20:43:25 +08:00
|
|
|
implementation("org.hibernate.orm:hibernate-jcache") {
|
2021-11-13 01:54:32 +08:00
|
|
|
exclude group: "javax.activation", module: "javax.activation-api"
|
|
|
|
exclude group: "javax.persistence", module: "javax.persistence-api"
|
|
|
|
exclude group: "org.jboss.spec.javax.transaction", module: "jboss-transaction-api_1.2_spec"
|
|
|
|
}
|
2024-03-11 18:29:15 +08:00
|
|
|
implementation("org.htmlunit:htmlunit") {
|
|
|
|
exclude group: "commons-logging", module: "commons-logging"
|
|
|
|
exclude group: "xml-apis", module: "xml-apis"
|
|
|
|
}
|
2022-02-05 08:00:32 +08:00
|
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
2025-04-08 02:00:27 +08:00
|
|
|
implementation("org.jooq:jooq")
|
2021-04-24 14:41:06 +08:00
|
|
|
implementation("org.mockito:mockito-core")
|
2021-04-07 01:15:09 +08:00
|
|
|
implementation("org.mongodb:mongodb-driver-sync")
|
2022-02-02 16:47:10 +08:00
|
|
|
implementation("org.postgresql:r2dbc-postgresql")
|
2021-04-24 14:41:06 +08:00
|
|
|
implementation("org.quartz-scheduler:quartz")
|
2021-02-04 09:51:32 +08:00
|
|
|
implementation("org.slf4j:jul-to-slf4j")
|
2021-03-13 09:46:41 +08:00
|
|
|
implementation("org.springframework:spring-jdbc")
|
2021-04-24 05:19:13 +08:00
|
|
|
implementation("org.springframework:spring-jms")
|
2021-04-19 22:54:05 +08:00
|
|
|
implementation("org.springframework:spring-orm")
|
2020-05-14 16:09:02 +08:00
|
|
|
implementation("org.springframework:spring-test")
|
|
|
|
implementation("org.springframework:spring-web")
|
|
|
|
implementation("org.springframework:spring-webflux")
|
2021-05-03 06:59:28 +08:00
|
|
|
implementation("org.springframework:spring-webmvc")
|
|
|
|
implementation("org.springframework:spring-websocket")
|
2021-04-24 05:19:13 +08:00
|
|
|
implementation("org.springframework.amqp:spring-amqp")
|
|
|
|
implementation("org.springframework.amqp:spring-rabbit")
|
2021-04-27 05:01:18 +08:00
|
|
|
implementation("org.springframework.batch:spring-batch-core")
|
2021-04-24 05:19:13 +08:00
|
|
|
implementation("org.springframework.data:spring-data-cassandra")
|
2024-04-11 23:55:24 +08:00
|
|
|
implementation("org.springframework.data:spring-data-couchbase")
|
2021-11-13 04:31:25 +08:00
|
|
|
implementation("org.springframework.data:spring-data-elasticsearch") {
|
|
|
|
exclude group: "commons-logging", module: "commons-logging"
|
|
|
|
}
|
2021-11-13 07:40:35 +08:00
|
|
|
implementation("org.springframework.data:spring-data-envers") {
|
|
|
|
exclude group: "javax.activation", module: "javax.activation-api"
|
|
|
|
exclude group: "javax.persistence", module: "javax.persistence-api"
|
|
|
|
exclude group: "org.jboss.spec.javax.transaction", module: "jboss-transaction-api_1.2_spec"
|
|
|
|
}
|
2021-05-03 06:59:28 +08:00
|
|
|
implementation("org.springframework.data:spring-data-jpa")
|
2021-04-24 05:19:13 +08:00
|
|
|
implementation("org.springframework.data:spring-data-ldap")
|
|
|
|
implementation("org.springframework.data:spring-data-mongodb")
|
2020-10-14 19:39:38 +08:00
|
|
|
implementation("org.springframework.data:spring-data-neo4j")
|
2020-05-14 16:09:02 +08:00
|
|
|
implementation("org.springframework.data:spring-data-redis")
|
|
|
|
implementation("org.springframework.data:spring-data-r2dbc")
|
2022-07-20 19:57:17 +08:00
|
|
|
implementation("org.springframework.graphql:spring-graphql")
|
|
|
|
implementation("org.springframework.graphql:spring-graphql-test")
|
2020-05-14 16:09:02 +08:00
|
|
|
implementation("org.springframework.kafka:spring-kafka")
|
2023-10-09 19:13:42 +08:00
|
|
|
implementation("org.springframework.kafka:spring-kafka-test") {
|
|
|
|
exclude group: "commons-logging", module: "commons-logging"
|
|
|
|
}
|
2023-08-31 07:39:37 +08:00
|
|
|
implementation("org.springframework.pulsar:spring-pulsar")
|
|
|
|
implementation("org.springframework.pulsar:spring-pulsar-reactive")
|
2023-05-19 20:40:23 +08:00
|
|
|
implementation("org.springframework.restdocs:spring-restdocs-mockmvc")
|
2022-03-25 18:12:42 +08:00
|
|
|
implementation("org.springframework.restdocs:spring-restdocs-restassured")
|
2020-05-14 16:09:02 +08:00
|
|
|
implementation("org.springframework.restdocs:spring-restdocs-webtestclient")
|
|
|
|
implementation("org.springframework.security:spring-security-config")
|
2021-03-13 09:46:41 +08:00
|
|
|
implementation("org.springframework.security:spring-security-oauth2-client")
|
2021-05-03 06:59:28 +08:00
|
|
|
implementation("org.springframework.security:spring-security-test")
|
2020-05-14 16:09:02 +08:00
|
|
|
implementation("org.springframework.security:spring-security-web")
|
2021-04-27 05:01:18 +08:00
|
|
|
implementation("org.springframework.ws:spring-ws-core")
|
|
|
|
implementation("org.springframework.ws:spring-ws-test")
|
2021-05-03 06:59:28 +08:00
|
|
|
implementation("org.testcontainers:junit-jupiter")
|
|
|
|
implementation("org.testcontainers:neo4j")
|
2023-05-03 09:55:03 +08:00
|
|
|
implementation("org.testcontainers:mongodb")
|
2025-02-14 19:52:18 +08:00
|
|
|
implementation("org.testcontainers:elasticsearch")
|
2020-05-14 16:09:02 +08:00
|
|
|
implementation("org.junit.jupiter:junit-jupiter")
|
2021-02-04 09:51:32 +08:00
|
|
|
implementation("org.yaml:snakeyaml")
|
2020-05-14 16:09:02 +08:00
|
|
|
|
2022-08-04 15:45:52 +08:00
|
|
|
remoteSpringApplicationExample(platform(project(":spring-boot-project:spring-boot-dependencies")))
|
|
|
|
remoteSpringApplicationExample(project(":spring-boot-project:spring-boot-devtools"))
|
|
|
|
remoteSpringApplicationExample(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-logging"))
|
|
|
|
remoteSpringApplicationExample("org.springframework:spring-web")
|
|
|
|
|
2025-03-25 22:44:34 +08:00
|
|
|
resolvedBom(project(path: ":spring-boot-project:spring-boot-dependencies", configuration: "resolvedBom"))
|
|
|
|
|
2022-08-04 15:45:52 +08:00
|
|
|
springApplicationExample(platform(project(":spring-boot-project:spring-boot-dependencies")))
|
|
|
|
springApplicationExample(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-web"))
|
|
|
|
|
2020-07-09 18:21:03 +08:00
|
|
|
testImplementation(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
|
|
|
|
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
|
2020-07-23 08:25:04 +08:00
|
|
|
|
2020-07-09 18:21:03 +08:00
|
|
|
testRuntimeOnly(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-web"))
|
|
|
|
testRuntimeOnly("com.h2database:h2")
|
|
|
|
testRuntimeOnly("org.springframework:spring-jdbc")
|
|
|
|
|
2020-01-23 06:09:17 +08:00
|
|
|
testSlices(project(path: ":spring-boot-project:spring-boot-test-autoconfigure", configuration: "testSliceMetadata"))
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
2024-05-10 21:53:48 +08:00
|
|
|
dokkatoo {
|
|
|
|
moduleName.set("Spring Boot Kotlin API")
|
|
|
|
}
|
|
|
|
|
2025-04-17 21:11:14 +08:00
|
|
|
def aggregatedJavadoc = tasks.register('aggregatedJavadoc', Javadoc) {
|
2025-04-24 23:41:34 +08:00
|
|
|
dependsOn configurations.resolvedBom
|
2025-04-17 21:11:14 +08:00
|
|
|
destinationDir = project.file(project.layout.buildDirectory.dir("docs/javadoc"))
|
|
|
|
options {
|
|
|
|
author = true
|
|
|
|
docTitle = "Spring Boot ${project.version} API"
|
|
|
|
memberLevel = "protected"
|
|
|
|
outputLevel = "quiet"
|
|
|
|
splitIndex = true
|
|
|
|
use = true
|
|
|
|
windowTitle = "Spring Boot ${project.version} API"
|
|
|
|
}
|
|
|
|
doFirst(new ConfigureJavadocLinks(configurations.resolvedBom, ["Spring Framework", "Spring Security", "Tomcat"]))
|
|
|
|
}
|
|
|
|
|
2025-04-17 19:58:28 +08:00
|
|
|
project.rootProject.gradle.projectsEvaluated {
|
|
|
|
Set<Project> publishedProjects = rootProject.subprojects.findAll { it != project }
|
|
|
|
.findAll { it.plugins.hasPlugin(JavaPlugin) && it.plugins.hasPlugin(MavenPublishPlugin) }
|
|
|
|
.findAll { !it.path.contains(":spring-boot-tools:") ||
|
|
|
|
it.path.contains(":spring-boot-tools:spring-boot-buildpack-platform") ||
|
|
|
|
it.path.contains(":spring-boot-tools:spring-boot-loader-tools") ||
|
|
|
|
(it.path.contains(":spring-boot-tools:spring-boot-loader") && !it.path.contains("spring-boot-loader-classic"))}
|
|
|
|
.findAll { !it.name.startsWith('spring-boot-starter') }
|
2025-04-17 21:11:14 +08:00
|
|
|
aggregatedJavadoc.configure {
|
2020-01-10 21:48:43 +08:00
|
|
|
dependsOn publishedProjects.javadoc
|
|
|
|
source publishedProjects.javadoc.source
|
|
|
|
classpath = project.files(publishedProjects.javadoc.classpath)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-04-05 22:46:08 +08:00
|
|
|
tasks.register("documentTestSlices", org.springframework.boot.build.test.autoconfigure.DocumentTestSlices) {
|
2020-01-10 21:48:43 +08:00
|
|
|
testSlices = configurations.testSlices
|
2024-10-17 23:52:55 +08:00
|
|
|
outputFile = layout.buildDirectory.file("generated/docs/test-auto-configuration/documented-slices.adoc")
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
2025-04-05 22:46:08 +08:00
|
|
|
tasks.register("documentStarters", org.springframework.boot.build.starters.DocumentStarters) {
|
2024-10-17 23:52:55 +08:00
|
|
|
outputDir = layout.buildDirectory.dir("generated/docs/using/starters/")
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
2025-04-05 22:46:08 +08:00
|
|
|
tasks.register("documentAutoConfigurationClasses", org.springframework.boot.build.autoconfigure.DocumentAutoConfigurationClasses) {
|
2020-01-10 21:48:43 +08:00
|
|
|
autoConfiguration = configurations.autoConfiguration
|
2024-10-17 23:52:55 +08:00
|
|
|
outputDir = layout.buildDirectory.dir("generated/docs/auto-configuration-classes/documented-auto-configuration-classes/")
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
2025-04-05 22:46:08 +08:00
|
|
|
tasks.register("documentDependencyVersionCoordinates", org.springframework.boot.build.docs.DocumentManagedDependencies) {
|
2024-10-17 23:52:55 +08:00
|
|
|
outputFile = layout.buildDirectory.file("generated/docs/dependency-versions/documented-coordinates.adoc")
|
2025-03-25 22:44:34 +08:00
|
|
|
resolvedBoms = configurations.resolvedBom
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
2025-04-05 22:46:08 +08:00
|
|
|
tasks.register("documentDependencyVersionProperties", org.springframework.boot.build.docs.DocumentVersionProperties) {
|
2024-10-17 23:52:55 +08:00
|
|
|
outputFile = layout.buildDirectory.file("generated/docs/dependency-versions/documented-properties.adoc")
|
2025-03-25 22:44:34 +08:00
|
|
|
resolvedBoms = configurations.resolvedBom
|
2020-01-24 16:22:03 +08:00
|
|
|
}
|
|
|
|
|
2025-04-05 22:46:08 +08:00
|
|
|
tasks.register("documentConfigurationProperties", org.springframework.boot.build.context.properties.DocumentConfigurationProperties) {
|
2020-01-10 21:48:43 +08:00
|
|
|
configurationPropertyMetadata = configurations.configurationProperties
|
2024-10-17 23:52:55 +08:00
|
|
|
outputDir = layout.buildDirectory.dir("generated/docs/application-properties")
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
2025-04-05 22:46:08 +08:00
|
|
|
tasks.register("documentDevtoolsPropertyDefaults", org.springframework.boot.build.devtools.DocumentDevtoolsPropertyDefaults) {}
|
2022-03-11 16:15:40 +08:00
|
|
|
|
2025-04-05 22:46:08 +08:00
|
|
|
tasks.register("runRemoteSpringApplicationExample", org.springframework.boot.build.docs.ApplicationRunner) {
|
2022-08-04 15:45:52 +08:00
|
|
|
classpath = configurations.remoteSpringApplicationExample
|
|
|
|
mainClass = "org.springframework.boot.devtools.RemoteSpringApplication"
|
|
|
|
args = ["https://myapp.example.com", "--spring.devtools.remote.secret=secret", "--spring.devtools.livereload.port=0"]
|
2024-10-17 23:41:00 +08:00
|
|
|
output = layout.buildDirectory.file("example-output/remote-spring-application.txt")
|
2022-08-04 15:45:52 +08:00
|
|
|
expectedLogging = "Started RemoteSpringApplication in "
|
2022-08-05 04:55:17 +08:00
|
|
|
applicationJar = "/Users/myuser/.m2/repository/org/springframework/boot/spring-boot-devtools/${project.version}/spring-boot-devtools-${project.version}.jar"
|
|
|
|
normalizeLiveReloadPort()
|
2022-08-04 15:45:52 +08:00
|
|
|
}
|
|
|
|
|
2025-04-05 22:46:08 +08:00
|
|
|
tasks.register("runSpringApplicationExample", org.springframework.boot.build.docs.ApplicationRunner) {
|
2022-08-04 15:45:52 +08:00
|
|
|
classpath = configurations.springApplicationExample + sourceSets.main.output
|
2023-08-09 22:06:09 +08:00
|
|
|
mainClass = "org.springframework.boot.docs.features.logexample.MyApplication"
|
2022-08-04 15:45:52 +08:00
|
|
|
args = ["--server.port=0"]
|
2024-10-17 23:41:00 +08:00
|
|
|
output = layout.buildDirectory.file("example-output/spring-application.txt")
|
2022-08-04 15:45:52 +08:00
|
|
|
expectedLogging = "Started MyApplication in "
|
2022-08-05 04:55:17 +08:00
|
|
|
normalizeTomcatPort()
|
2022-08-04 15:45:52 +08:00
|
|
|
}
|
|
|
|
|
2025-04-05 22:46:08 +08:00
|
|
|
tasks.register("runLoggingFormatExample", org.springframework.boot.build.docs.ApplicationRunner) {
|
2022-08-04 15:45:52 +08:00
|
|
|
classpath = configurations.springApplicationExample + sourceSets.main.output
|
2023-08-09 22:06:09 +08:00
|
|
|
mainClass = "org.springframework.boot.docs.features.logexample.MyApplication"
|
2023-06-22 12:56:20 +08:00
|
|
|
args = ["--spring.main.banner-mode=off", "--server.port=0", "--spring.application.name=myapp"]
|
2024-10-17 23:41:00 +08:00
|
|
|
output = layout.buildDirectory.file("example-output/logging-format.txt")
|
2022-08-04 15:45:52 +08:00
|
|
|
expectedLogging = "Started MyApplication in "
|
2022-08-05 04:55:17 +08:00
|
|
|
normalizeTomcatPort()
|
2022-08-04 15:45:52 +08:00
|
|
|
}
|
|
|
|
|
2024-03-20 12:48:08 +08:00
|
|
|
def getRelativeExamplesPath(var outputs) {
|
|
|
|
def fileName = outputs.files.singleFile.name
|
|
|
|
'example$example-output/' + fileName
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
2024-11-01 01:36:51 +08:00
|
|
|
antoraDependencies {
|
|
|
|
'actuator-rest-api' {
|
|
|
|
path = ":spring-boot-project:spring-boot-actuator-autoconfigure"
|
|
|
|
source()
|
|
|
|
aggregateContent()
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
2024-11-01 01:36:51 +08:00
|
|
|
'gradle-plugin' {
|
|
|
|
path = ":spring-boot-project:spring-boot-tools:spring-boot-gradle-plugin"
|
|
|
|
source()
|
|
|
|
catalogContent()
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
2024-11-01 01:36:51 +08:00
|
|
|
'maven-plugin' {
|
|
|
|
path = ":spring-boot-project:spring-boot-tools:spring-boot-maven-plugin"
|
|
|
|
source()
|
|
|
|
catalogContent()
|
|
|
|
aggregateContent()
|
2022-08-01 21:57:32 +08:00
|
|
|
}
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
2024-11-01 01:36:51 +08:00
|
|
|
antoraContributions {
|
|
|
|
'api' {
|
2024-11-20 18:08:50 +08:00
|
|
|
publish()
|
2024-11-01 01:36:51 +08:00
|
|
|
catalogContent {
|
|
|
|
from(aggregatedJavadoc) {
|
|
|
|
into "java"
|
|
|
|
}
|
|
|
|
from(tasks.named("dokkatooGeneratePublicationHtml")) {
|
|
|
|
into "kotlin"
|
|
|
|
}
|
|
|
|
}
|
2024-05-10 21:53:48 +08:00
|
|
|
}
|
2024-11-01 01:36:51 +08:00
|
|
|
'root' {
|
2024-11-20 18:08:50 +08:00
|
|
|
publish()
|
2024-11-01 01:36:51 +08:00
|
|
|
aggregateContent {
|
|
|
|
from("src/main") {
|
|
|
|
into "modules/ROOT/examples"
|
|
|
|
}
|
|
|
|
from(project.configurations.configurationProperties) {
|
|
|
|
eachFile {
|
|
|
|
it.path = rootProject
|
|
|
|
.projectDir
|
|
|
|
.toPath()
|
|
|
|
.relativize(it.file.toPath())
|
|
|
|
.toString()
|
|
|
|
.replace('\\', '/')
|
|
|
|
.replaceAll('.*/([^/]+)/build.*', 'modules/ROOT/partials/$1/spring-configuration-metadata.json')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
from(runRemoteSpringApplicationExample) {
|
|
|
|
into "modules/ROOT/examples"
|
|
|
|
}
|
|
|
|
from(documentDevtoolsPropertyDefaults) {
|
|
|
|
into "modules/ROOT/partials/propertydefaults"
|
|
|
|
}
|
|
|
|
from(documentStarters) {
|
|
|
|
into "modules/ROOT/partials/starters"
|
|
|
|
}
|
|
|
|
from(documentTestSlices) {
|
|
|
|
into "modules/appendix/partials/slices"
|
|
|
|
}
|
|
|
|
from(runSpringApplicationExample) {
|
|
|
|
into "modules/ROOT/partials/application"
|
|
|
|
}
|
|
|
|
from(runLoggingFormatExample) {
|
|
|
|
into "modules/ROOT/partials/logging"
|
|
|
|
}
|
|
|
|
from(documentDependencyVersionCoordinates) {
|
|
|
|
into "modules/appendix/partials/dependency-versions"
|
|
|
|
}
|
|
|
|
from(documentDependencyVersionProperties) {
|
|
|
|
into "modules/appendix/partials/dependency-versions"
|
|
|
|
}
|
|
|
|
from(documentAutoConfigurationClasses) {
|
|
|
|
into "modules/appendix/partials/auto-configuration-classes"
|
|
|
|
}
|
|
|
|
from(documentConfigurationProperties) {
|
|
|
|
into "modules/appendix/partials/configuration-properties"
|
|
|
|
}
|
|
|
|
from(tasks.getByName("generateAntoraYml")) {
|
|
|
|
into "modules"
|
|
|
|
}
|
|
|
|
}
|
2024-03-20 12:48:08 +08:00
|
|
|
}
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
2024-05-10 21:53:48 +08:00
|
|
|
dokkatoo {
|
|
|
|
dokkatooPublications.configureEach {
|
|
|
|
includes.from("src/docs/dokkatoo/dokka-overview.md")
|
|
|
|
}
|
|
|
|
}
|