2020-01-10 21:48:43 +08:00
|
|
|
plugins {
|
2020-07-09 18:21:03 +08:00
|
|
|
id "java"
|
2021-05-03 06:59:28 +08:00
|
|
|
id "groovy"
|
2020-01-23 03:24:37 +08:00
|
|
|
id "org.asciidoctor.jvm.convert"
|
|
|
|
id "org.springframework.boot.conventions"
|
|
|
|
id "org.springframework.boot.deployed"
|
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 {
|
|
|
|
actuatorApiDocumentation
|
|
|
|
autoConfiguration
|
|
|
|
configurationProperties
|
|
|
|
gradlePluginDocumentation
|
|
|
|
mavenPluginDocumentation
|
|
|
|
testSlices
|
|
|
|
}
|
|
|
|
|
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) {
|
|
|
|
extensions.getByType(org.gradle.plugins.ide.eclipse.model.EclipseModel).classpath { classpath ->
|
|
|
|
classpath.plusConfigurations.add(configurations.getByName(sourceSets.main.runtimeClasspathConfigurationName))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-10 21:48:43 +08:00
|
|
|
dependencies {
|
2020-01-23 06:09:17 +08:00
|
|
|
actuatorApiDocumentation(project(path: ":spring-boot-project:spring-boot-actuator-autoconfigure", configuration: "documentation"))
|
2020-01-23 03:24:37 +08:00
|
|
|
|
2020-02-13 17:39:42 +08:00
|
|
|
asciidoctorExtensions("io.spring.asciidoctor:spring-asciidoctor-extensions-spring-boot")
|
2021-04-29 22:34:02 +08:00
|
|
|
asciidoctorExtensions("io.spring.asciidoctor:spring-asciidoctor-extensions-section-ids")
|
2020-02-13 17:39:42 +08:00
|
|
|
asciidoctorExtensions(project(path: ":spring-boot-project:spring-boot-actuator-autoconfigure"))
|
|
|
|
asciidoctorExtensions(project(path: ":spring-boot-project:spring-boot-autoconfigure"))
|
|
|
|
asciidoctorExtensions(project(path: ":spring-boot-project:spring-boot-devtools"))
|
|
|
|
|
2020-01-23 06:09:17 +08:00
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-autoconfigure", configuration: "autoConfigurationMetadata"))
|
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-actuator-autoconfigure", configuration: "autoConfigurationMetadata"))
|
|
|
|
autoConfiguration(project(path: ":spring-boot-project:spring-boot-devtools", 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"))
|
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-actuator", configuration: "configurationPropertiesMetadata"))
|
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-actuator-autoconfigure", configuration: "configurationPropertiesMetadata"))
|
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-autoconfigure", configuration: "configurationPropertiesMetadata"))
|
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-devtools", configuration: "configurationPropertiesMetadata"))
|
2020-12-16 01:20:21 +08:00
|
|
|
configurationProperties(project(path: ":spring-boot-project:spring-boot-test-autoconfigure", configuration: "configurationPropertiesMetadata"))
|
2020-01-23 03:24:37 +08:00
|
|
|
|
2020-01-23 06:09:17 +08:00
|
|
|
gradlePluginDocumentation(project(path: ":spring-boot-project:spring-boot-tools:spring-boot-gradle-plugin", configuration: "documentation"))
|
2020-01-23 03:24:37 +08:00
|
|
|
|
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"))
|
2020-05-14 16:09:02 +08:00
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-autoconfigure"))
|
2021-05-03 06:59:28 +08:00
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-cli"))
|
|
|
|
implementation(project(path: ":spring-boot-project:spring-boot-tools:spring-boot-loader-tools"))
|
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"))
|
2021-02-04 09:51:32 +08:00
|
|
|
implementation("ch.qos.logback:logback-classic")
|
2020-05-14 16:09:02 +08:00
|
|
|
implementation("com.zaxxer:HikariCP")
|
|
|
|
implementation("io.micrometer:micrometer-core")
|
2021-05-03 06:59:28 +08:00
|
|
|
implementation("io.micrometer:micrometer-registry-graphite")
|
|
|
|
implementation("io.micrometer:micrometer-registry-jmx")
|
2020-08-04 19:26:47 +08:00
|
|
|
implementation("io.projectreactor.netty:reactor-netty-http")
|
2021-04-24 05:19:13 +08:00
|
|
|
implementation("io.r2dbc:r2dbc-postgresql")
|
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-13 04:31:25 +08:00
|
|
|
implementation("net.sourceforge.htmlunit:htmlunit") {
|
|
|
|
exclude group: "commons-logging", module: "commons-logging"
|
|
|
|
}
|
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")
|
2021-11-13 04:31:25 +08:00
|
|
|
implementation("org.apache.solr:solr-solrj") {
|
|
|
|
exclude group: "commons-logging", module: "commons-logging"
|
|
|
|
exclude group: "org.slf4j", module: "jcl-over-slf4j"
|
|
|
|
}
|
2020-05-14 16:09:02 +08:00
|
|
|
implementation("org.apache.tomcat.embed:tomcat-embed-core")
|
|
|
|
implementation("org.assertj:assertj-core")
|
|
|
|
implementation("org.glassfish.jersey.core:jersey-server")
|
2021-05-03 06:59:28 +08:00
|
|
|
implementation("org.glassfish.jersey.containers:jersey-container-servlet-core")
|
2021-11-13 01:54:32 +08:00
|
|
|
implementation("org.hibernate:hibernate-jcache") {
|
|
|
|
exclude group: "javax.activation", module: "javax.activation-api"
|
|
|
|
exclude group: "javax.persistence", module: "javax.persistence-api"
|
|
|
|
exclude group: "javax.xml.bind", module: "jaxb-api"
|
|
|
|
exclude group: "org.jboss.spec.javax.transaction", module: "jboss-transaction-api_1.2_spec"
|
|
|
|
}
|
2021-11-13 04:31:25 +08:00
|
|
|
implementation("org.jooq:jooq") {
|
|
|
|
exclude group: "javax.xml.bind", module: "jaxb-api"
|
|
|
|
}
|
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")
|
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")
|
2020-08-11 19:28:16 +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-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")
|
|
|
|
implementation("org.springframework.kafka:spring-kafka")
|
2021-04-24 05:19:13 +08:00
|
|
|
implementation("org.springframework.kafka:spring-kafka-test")
|
2021-11-13 04:31:25 +08:00
|
|
|
implementation("org.springframework.restdocs:spring-restdocs-mockmvc") {
|
|
|
|
exclude group: "javax.servlet", module: "javax.servlet-api"
|
|
|
|
}
|
2021-11-13 01:54:32 +08:00
|
|
|
implementation("org.springframework.restdocs:spring-restdocs-restassured") {
|
|
|
|
exclude group: "commons-logging", module: "commons-logging"
|
|
|
|
exclude group: "javax.activation", module: "activation"
|
|
|
|
exclude group: "javax.xml.bind", module: "jaxb-api"
|
|
|
|
}
|
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")
|
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
|
|
|
|
2020-01-23 06:09:17 +08:00
|
|
|
mavenPluginDocumentation(project(path: ":spring-boot-project:spring-boot-tools:spring-boot-maven-plugin", configuration: "documentation"))
|
2020-01-23 03:24:37 +08:00
|
|
|
|
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"))
|
|
|
|
testImplementation("org.assertj:assertj-core")
|
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter")
|
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
|
|
|
}
|
|
|
|
|
|
|
|
task dependencyVersions(type: org.springframework.boot.build.constraints.ExtractVersionConstraints) {
|
2020-01-23 03:24:37 +08:00
|
|
|
enforcedPlatform(":spring-boot-project:spring-boot-dependencies")
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
2020-07-09 18:21:03 +08:00
|
|
|
task aggregatedJavadoc(type: Javadoc) {
|
2020-01-10 21:48:43 +08:00
|
|
|
dependsOn dependencyVersions
|
|
|
|
project.rootProject.gradle.projectsEvaluated {
|
2020-05-13 23:54:20 +08:00
|
|
|
Set<String> excludedProjects = ['spring-boot-antlib', 'spring-boot-configuration-metadata', 'spring-boot-configuration-processor',
|
|
|
|
'spring-boot-gradle-plugin', 'spring-boot-jarmode-layertools', 'spring-boot-maven-plugin']
|
2020-01-10 21:48:43 +08:00
|
|
|
Set<Project> publishedProjects = rootProject.subprojects.findAll { it != project}
|
|
|
|
.findAll { it.plugins.hasPlugin(JavaPlugin) && it.plugins.hasPlugin(MavenPublishPlugin) }
|
2020-05-13 23:54:20 +08:00
|
|
|
.findAll { !excludedProjects.contains(it.name) }
|
2021-01-06 00:01:20 +08:00
|
|
|
.findAll { !it.name.startsWith('spring-boot-starter') }
|
2020-01-10 21:48:43 +08:00
|
|
|
dependsOn publishedProjects.javadoc
|
|
|
|
source publishedProjects.javadoc.source
|
|
|
|
classpath = project.files(publishedProjects.javadoc.classpath)
|
2020-01-22 10:33:33 +08:00
|
|
|
destinationDir = project.file "${buildDir}/docs/javadoc"
|
2020-01-10 21:48:43 +08:00
|
|
|
options {
|
|
|
|
author = true
|
|
|
|
docTitle = "Spring Boot ${project.version} API"
|
2020-01-23 03:24:37 +08:00
|
|
|
encoding = "UTF-8"
|
|
|
|
memberLevel = "protected"
|
|
|
|
outputLevel = "quiet"
|
|
|
|
source = "1.8"
|
2020-01-10 21:48:43 +08:00
|
|
|
splitIndex = true
|
2020-01-23 03:24:37 +08:00
|
|
|
stylesheetFile = file("src/main/javadoc/spring-javadoc.css")
|
2020-01-10 21:48:43 +08:00
|
|
|
use = true
|
|
|
|
windowTitle = "Spring Boot ${project.version} API"
|
|
|
|
}
|
|
|
|
doFirst {
|
|
|
|
def versionConstraints = dependencyVersions.versionConstraints
|
2020-01-23 03:24:37 +08:00
|
|
|
def tomcatVersion = "${versionConstraints["org.apache.tomcat:tomcat-annotations-api"]}"
|
|
|
|
def tomcatDocsVersion = tomcatVersion.substring(0, tomcatVersion.lastIndexOf("."));
|
2020-01-10 21:48:43 +08:00
|
|
|
options.links = [
|
2020-01-23 03:24:37 +08:00
|
|
|
"https://docs.oracle.com/javase/8/docs/api/",
|
|
|
|
"https://docs.oracle.com/javaee/7/api/",
|
|
|
|
"https://docs.spring.io/spring-framework/docs/${versionConstraints["org.springframework:spring-core"]}/javadoc-api/",
|
|
|
|
"https://docs.spring.io/spring-security/site/docs/${versionConstraints["org.springframework.security:spring-security-core"]}/api/",
|
2020-01-11 16:39:11 +08:00
|
|
|
"https://tomcat.apache.org/tomcat-${tomcatDocsVersion}-doc/api/",
|
2020-01-23 03:24:37 +08:00
|
|
|
"https://www.thymeleaf.org/apidocs/thymeleaf/${versionConstraints["org.thymeleaf:thymeleaf"]}/"
|
2020-01-10 21:48:43 +08:00
|
|
|
] as String[]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task documentTestSlices(type: org.springframework.boot.build.test.autoconfigure.DocumentTestSlices) {
|
|
|
|
testSlices = configurations.testSlices
|
2021-04-30 00:11:56 +08:00
|
|
|
outputFile = file("${buildDir}/docs/generated/test-auto-configuration/documented-slices.adoc")
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
task documentStarters(type: org.springframework.boot.build.starters.DocumentStarters) {
|
2021-04-30 00:11:56 +08:00
|
|
|
outputDir = file("${buildDir}/docs/generated/using/starters/")
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
task documentAutoConfigurationClasses(type: org.springframework.boot.build.autoconfigure.DocumentAutoConfigurationClasses) {
|
|
|
|
autoConfiguration = configurations.autoConfiguration
|
2021-04-30 00:11:56 +08:00
|
|
|
outputDir = file("${buildDir}/docs/generated/auto-configuration-classes/documented-auto-configuration-classes/")
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
task documentDependencyVersions(type: org.springframework.boot.build.constraints.DocumentConstrainedVersions) {
|
|
|
|
dependsOn dependencyVersions
|
|
|
|
constrainedVersions.set(providers.provider { dependencyVersions.constrainedVersions })
|
2021-04-30 00:11:56 +08:00
|
|
|
outputFile = file("${buildDir}/docs/generated/dependency-versions/documented-coordinates.adoc")
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
2020-01-24 16:22:03 +08:00
|
|
|
task documentVersionProperties(type: org.springframework.boot.build.constraints.DocumentVersionProperties) {
|
|
|
|
dependsOn dependencyVersions
|
|
|
|
versionProperties.set(providers.provider { dependencyVersions.versionProperties})
|
2021-04-30 00:11:56 +08:00
|
|
|
outputFile = file("${buildDir}/docs/generated/dependency-versions/documented-properties.adoc")
|
2020-01-24 16:22:03 +08:00
|
|
|
}
|
|
|
|
|
2020-01-10 21:48:43 +08:00
|
|
|
task documentConfigurationProperties(type: org.springframework.boot.build.context.properties.DocumentConfigurationProperties) {
|
|
|
|
configurationPropertyMetadata = configurations.configurationProperties
|
2021-05-19 04:24:39 +08:00
|
|
|
outputDir = file("${buildDir}/docs/generated/")
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
2022-03-11 16:15:40 +08:00
|
|
|
task documentDevtoolsPropertyDefaults(type: org.springframework.boot.build.devtools.DocumentDevtoolsPropertyDefaults) {}
|
|
|
|
|
2020-01-10 21:48:43 +08:00
|
|
|
tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) {
|
|
|
|
dependsOn dependencyVersions
|
2020-02-13 17:39:42 +08:00
|
|
|
asciidoctorj {
|
|
|
|
fatalWarnings = ['^((?!successfully validated).)*$']
|
|
|
|
}
|
2020-01-10 21:48:43 +08:00
|
|
|
doFirst {
|
|
|
|
def versionConstraints = dependencyVersions.versionConstraints
|
2020-01-23 03:24:37 +08:00
|
|
|
attributes "jetty-version": versionConstraints["org.eclipse.jetty:jetty-server"],
|
|
|
|
"jooq-version": versionConstraints["org.jooq:jooq"],
|
|
|
|
"spring-amqp-version": versionConstraints["org.springframework.amqp:spring-amqp"],
|
|
|
|
"spring-batch-version": versionConstraints["org.springframework.batch:spring-batch-core"],
|
|
|
|
"spring-boot-version": project.version,
|
|
|
|
"spring-data-commons-version": versionConstraints["org.springframework.data:spring-data-commons"],
|
|
|
|
"spring-data-couchbase-version": versionConstraints["org.springframework.data:spring-data-couchbase"],
|
|
|
|
"spring-data-jdbc-version": versionConstraints["org.springframework.data:spring-data-jdbc"],
|
|
|
|
"spring-data-jpa-version": versionConstraints["org.springframework.data:spring-data-jpa"],
|
|
|
|
"spring-data-mongodb-version": versionConstraints["org.springframework.data:spring-data-mongodb"],
|
|
|
|
"spring-data-neo4j-version": versionConstraints["org.springframework.data:spring-data-neo4j"],
|
2020-02-25 00:27:30 +08:00
|
|
|
"spring-data-r2dbc-version": versionConstraints["org.springframework.data:spring-data-r2dbc"],
|
2020-01-23 03:24:37 +08:00
|
|
|
"spring-data-rest-version": versionConstraints["org.springframework.data:spring-data-rest-core"],
|
|
|
|
"spring-framework-version": versionConstraints["org.springframework:spring-core"],
|
2020-06-15 15:18:40 +08:00
|
|
|
"spring-kafka-version": versionConstraints["org.springframework.kafka:spring-kafka"],
|
2020-01-23 03:24:37 +08:00
|
|
|
"spring-integration-version": versionConstraints["org.springframework.integration:spring-integration-core"],
|
|
|
|
"spring-security-version": versionConstraints["org.springframework.security:spring-security-core"],
|
|
|
|
"spring-webservices-version": versionConstraints["org.springframework.ws:spring-ws-core"]
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
asciidoctor {
|
|
|
|
sources {
|
2020-04-07 05:49:29 +08:00
|
|
|
include "*.singleadoc"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-11 09:04:05 +08:00
|
|
|
task asciidoctorPdf(type: org.asciidoctor.gradle.jvm.AsciidoctorTask) {
|
2020-01-10 21:48:43 +08:00
|
|
|
sources {
|
2020-04-07 05:49:29 +08:00
|
|
|
include "*.singleadoc"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task asciidoctorMultipage(type: org.asciidoctor.gradle.jvm.AsciidoctorTask) {
|
|
|
|
sources {
|
2020-01-23 03:24:37 +08:00
|
|
|
include "*.adoc"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
syncDocumentationSourceForAsciidoctor {
|
|
|
|
dependsOn documentTestSlices
|
|
|
|
dependsOn documentStarters
|
|
|
|
dependsOn documentAutoConfigurationClasses
|
|
|
|
dependsOn documentDependencyVersions
|
2020-01-24 16:22:03 +08:00
|
|
|
dependsOn documentVersionProperties
|
2020-01-10 21:48:43 +08:00
|
|
|
dependsOn documentConfigurationProperties
|
2022-03-11 16:15:40 +08:00
|
|
|
dependsOn documentDevtoolsPropertyDefaults
|
2020-01-22 10:33:33 +08:00
|
|
|
from("${buildDir}/docs/generated") {
|
2020-01-23 03:24:37 +08:00
|
|
|
into "asciidoc"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
2020-01-23 06:09:17 +08:00
|
|
|
from("src/main/java") {
|
2020-01-23 03:24:37 +08:00
|
|
|
into "main/java"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
2020-01-23 06:09:17 +08:00
|
|
|
from("src/test/java") {
|
2020-01-23 03:24:37 +08:00
|
|
|
into "test/java"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
2021-05-03 06:59:28 +08:00
|
|
|
from("src/main/groovy") {
|
|
|
|
into "main/groovy"
|
|
|
|
}
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
syncDocumentationSourceForAsciidoctorMultipage {
|
|
|
|
dependsOn documentTestSlices
|
|
|
|
dependsOn documentStarters
|
|
|
|
dependsOn documentAutoConfigurationClasses
|
|
|
|
dependsOn documentDependencyVersions
|
2020-01-24 16:22:03 +08:00
|
|
|
dependsOn documentVersionProperties
|
2020-01-10 21:48:43 +08:00
|
|
|
dependsOn documentConfigurationProperties
|
2020-01-22 10:33:33 +08:00
|
|
|
from("${buildDir}/docs/generated") {
|
2020-01-23 03:24:37 +08:00
|
|
|
into "asciidoc"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
2020-01-23 06:09:17 +08:00
|
|
|
from("src/main/java") {
|
2020-01-23 03:24:37 +08:00
|
|
|
into "main/java"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
2020-01-23 06:09:17 +08:00
|
|
|
from("src/test/java") {
|
2020-01-23 03:24:37 +08:00
|
|
|
into "test/java"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
2021-05-03 06:59:28 +08:00
|
|
|
from("src/main/groovy") {
|
|
|
|
into "main/groovy"
|
|
|
|
}
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
syncDocumentationSourceForAsciidoctorPdf {
|
|
|
|
dependsOn documentTestSlices
|
|
|
|
dependsOn documentStarters
|
|
|
|
dependsOn documentAutoConfigurationClasses
|
|
|
|
dependsOn documentDependencyVersions
|
2020-01-24 16:22:03 +08:00
|
|
|
dependsOn documentVersionProperties
|
2020-01-10 21:48:43 +08:00
|
|
|
dependsOn documentConfigurationProperties
|
2020-01-22 10:33:33 +08:00
|
|
|
from("${buildDir}/docs/generated") {
|
2020-01-23 03:24:37 +08:00
|
|
|
into "asciidoc"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
2020-01-23 06:09:17 +08:00
|
|
|
from("src/main/java") {
|
2020-01-23 03:24:37 +08:00
|
|
|
into "main/java"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
2020-01-23 06:09:17 +08:00
|
|
|
from("src/test/java") {
|
2020-01-23 03:24:37 +08:00
|
|
|
into "test/java"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
2021-05-03 06:59:28 +08:00
|
|
|
from("src/main/groovy") {
|
|
|
|
into "main/groovy"
|
|
|
|
}
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
task zip(type: Zip) {
|
|
|
|
dependsOn asciidoctor,
|
|
|
|
asciidoctorMultipage,
|
|
|
|
asciidoctorPdf,
|
|
|
|
configurations.gradlePluginDocumentation,
|
|
|
|
configurations.actuatorApiDocumentation,
|
|
|
|
configurations.mavenPluginDocumentation
|
2020-01-23 03:24:37 +08:00
|
|
|
duplicatesStrategy "fail"
|
2020-01-10 21:48:43 +08:00
|
|
|
from(asciidoctor.outputDir) {
|
2020-01-23 03:24:37 +08:00
|
|
|
into "reference/htmlsingle"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
from(asciidoctorPdf.outputDir) {
|
2020-01-23 03:24:37 +08:00
|
|
|
into "reference/pdf"
|
2020-04-07 10:15:29 +08:00
|
|
|
include "index.pdf"
|
|
|
|
rename { "spring-boot-reference.pdf" }
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
from(asciidoctorMultipage.outputDir) {
|
2020-01-23 03:24:37 +08:00
|
|
|
into "reference/html"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
2020-07-09 18:21:03 +08:00
|
|
|
from(aggregatedJavadoc) {
|
2020-01-23 03:24:37 +08:00
|
|
|
into "api"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
2020-01-23 03:24:37 +08:00
|
|
|
into("gradle-plugin") {
|
2020-01-10 21:48:43 +08:00
|
|
|
from {
|
|
|
|
zipTree(configurations.gradlePluginDocumentation.singleFile)
|
|
|
|
}
|
|
|
|
}
|
2020-01-23 03:24:37 +08:00
|
|
|
into("actuator-api") {
|
2020-01-10 21:48:43 +08:00
|
|
|
from {
|
|
|
|
zipTree(configurations.actuatorApiDocumentation.singleFile)
|
|
|
|
}
|
|
|
|
}
|
2020-01-23 03:24:37 +08:00
|
|
|
into("maven-plugin") {
|
2020-01-10 21:48:43 +08:00
|
|
|
from {
|
|
|
|
zipTree(configurations.mavenPluginDocumentation.singleFile)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives zip
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
2021-02-09 22:10:58 +08:00
|
|
|
maven(MavenPublication) {
|
2020-01-10 21:48:43 +08:00
|
|
|
artifact zip
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|