Files
spring-boot-data-geode/spring-geode-docs/spring-geode-docs.gradle
John Blum 32954221cb Update documentation references for Apache Geode, VMware Tanzu Application Service for VMs (Pivotal CloudFoundry (PCF)) and VMware Tanzu GemFire for VMs (Pivotal Cloud Cache (PCC)).
Sets Apache Geode documentation version reference to 113.

Sets VMW TAS 4 VMs / PCF documentation version reference to 2-10.

Set VMW GF 4 VMs / PCC documentation version reference to 1-13.
2021-01-13 21:18:35 -08:00

112 lines
3.9 KiB
Groovy

plugins {
id "io.freefair.lombok" version "5.3.0"
}
import org.apache.tools.ant.filters.ReplaceTokens
apply plugin: 'io.spring.convention.docs'
apply plugin: 'io.spring.convention.spring-test'
description = "Generate Javadoc and Reference Documentation on Spring Boot for Apache Geode"
dependencies {
compile project(':spring-geode-starter')
optional project(":spring-geode-starter-logging")
compile "org.assertj:assertj-core"
compile "org.projectlombok:lombok"
testCompile "junit:junit"
testCompile "org.mockito:mockito-core"
testCompile "org.springframework:spring-test"
testCompile "edu.umd.cs.mtc:multithreadedtc"
}
def versions = dependencyManagement.managedVersions
asciidoctor {
clearSources()
sources {
include "index.adoc"
include "guides/*.adoc"
}
}
asciidoctorj {
def githubBaseUrl = "https://github.com/spring-projects/spring-boot-data-geode"
def githubTag = snapshotBuild ? 'master' : project.version
def githubUrl = "$githubBaseUrl/tree/$githubTag"
attributes 'version' : project.version,
'version-snapshot': snapshotBuild,
'version-milestone': milestoneBuild,
'version-release': releaseBuild,
'download-url' : "${githubBaseUrl}/archive/${githubTag}.zip",
'github-url': githubUrl,
'github-samples-url': "${githubUrl}/spring-geode-samples",
'highlightjsdir@': "js/highlight",
'docinfodir@': ".",
'apache-geode-artifact-version' : "${apacheGeodeVersion}",
'apache-geode-doc-version' : "113",
'apache-geode-src' : "https://github.com/apache/geode/blob/rel/v${apacheGeodeVersion}",
'pivotal-cloudcache-artifact-version' : "${pivotalCloudCacheVersion}",
'pivotal-cloudcache-doc-version' : "1-13",
'pivotal-gemfire-artifact-version' : "${pivotalGemFireVersion}",
'pivotal-gemfire-doc-version' : "910",
'spring-version' : versions['org.springframework:spring-core'],
'spring-boot-version' : "${springBootVersion}",
'spring-boot-data-geode-version' : project.version,
'spring-data-commons-version' : "${springDataBomVersion}",
'spring-data-geode-version' : "${springDataGeodeVersion}",
'spring-session-data-gemfire-version' : "${springSessionDataGeodeVersion}",
'spring-session-data-geode-version' : "${springSessionDataGeodeVersion}",
'spring-test-data-gemfire-version' : "${springDataGeodeTestVersion}",
'spring-test-data-geode-version' : "${springDataGeodeTestVersion}",
'docs-dir' : rootProject.projectDir.path + '/spring-geode-docs',
'docs-src-dir' : rootProject.projectDir.path + '/spring-geode-docs/src/main/java',
'docs-resources-dir' : rootProject.projectDir.path + '/spring-geode-docs/src/main/resources',
'examples-dir' : rootProject.projectDir.path + '/spring-geode-examples',
'samples-dir' : rootProject.projectDir.path + '/spring-geode-samples',
'starter-logging-dir' : rootProject.projectDir.path + '/spring-geode-starter-logging',
'starter-logging-src-dir' : rootProject.projectDir.path + '/spring-geode-starter-logging/src/main/src',
'starter-logging-resources-dir' : rootProject.projectDir.path + '/spring-geode-starter-logging/src/main/resources'
}
asciidoctorPdf {
clearSources()
sources {
include "index.adoc"
// include "guides/*.adoc"
}
}
javadoc {
configure(options) {
links = [
"https://docs.spring.io/spring/docs/current/javadoc-api/",
"https://docs.spring.io/spring-boot/docs/current/api/",
"https://docs.spring.io/spring-boot-data-geode/docs/${project.version}/api/",
"https://docs.spring.io/spring-data/commons/docs/current/api/",
"https://docs.spring.io/spring-data/geode/docs/current/api/",
"https://geode.apache.org/releases/latest/javadoc/",
]
}
}
processResources {
eachFile { file ->
if (!file.name.endsWith(".jks")) {
file.filter ReplaceTokens, tokens: [
'project-dir' : rootProject.projectDir.path,
'project-version' : project.version,
'docs-dir' : rootProject.projectDir.path + '/spring-geode-docs',
'samples-dir' : rootProject.projectDir.path + '/spring-geode-samples'
]
}
}
}