Files
spring-boot-data-geode/spring-geode-docs/spring-geode-docs.gradle
John Blum 66a130f954 Revert directory location references back to using 'rootProject.projectDir.path'.
Source file references must use the 'include:' directive and not 'link:' inside the source reference markup.
2019-04-24 11:23:55 -07:00

58 lines
2.2 KiB
Groovy

apply plugin: 'io.spring.convention.docs'
apply plugin: 'io.spring.convention.spring-test'
dependencies {
compile project(':spring-geode-starter')
testCompile "junit:junit"
testCompile "org.assertj:assertj-core"
testCompile "org.mockito:mockito-core"
testCompile "org.projectlombok:lombok"
testCompile "edu.umd.cs.mtc:multithreadedtc"
testCompile "org.springframework:spring-test"
}
def versions = dependencyManagement.managedVersions
asciidoctor {
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,
'github-url': githubUrl,
'github-samples-url': "${githubUrl}/spring-geode-samples",
'download-url' : "${githubBaseUrl}/archive/${githubTag}.zip",
'spring-version' : versions['org.springframework:spring-core'],
'spring-boot-version' : "${springBootVersion}",
'spring-boot-data-geode-version' : project.version,
'spring-data-commons-version' : "${springDataReleaseTrainVersion}",
'spring-data-gemfire-version' : "${springDataGemFireVersion}",
'spring-data-geode-version' : "${springDataGeodeVersion}",
'spring-session-data-gemfire-version' : "${springSessionDataGeodeVersion}",
'spring-session-data-geode-version' : "${springSessionDataGeodeVersion}",
'docs-dir' : rootProject.projectDir.path + '/spring-geode-docs/',
'docs-src-dir' : rootProject.projectDir.path + '/spring-geode-docs/src/main/java',
'examples-dir' : rootProject.projectDir.path + '/spring-geode-examples/',
'samples-dir' : rootProject.projectDir.path + '/spring-geode-samples/'
}
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/",
]
}
}