Customize Gradle Asciidoctor build task to properly identify doc source.
Other Spring Build Conventions based projects assume includes are in _includes but SBDG has includes outside of _includes. This means we must change the sources to only be 'index.adoc'. Update docs build to configure every task of type AbstractAsciidoctorTask so that asciidoctorPdf picks up the custom attributes set and the updated sources.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
import org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask
|
||||
|
||||
apply plugin: 'io.spring.convention.docs'
|
||||
apply plugin: 'io.spring.convention.spring-test'
|
||||
@@ -18,7 +19,11 @@ dependencies {
|
||||
|
||||
def versions = dependencyManagement.managedVersions
|
||||
|
||||
asciidoctor {
|
||||
tasks.withType(AbstractAsciidoctorTask).configureEach {
|
||||
clearSources()
|
||||
sources {
|
||||
include "index.adoc"
|
||||
}
|
||||
|
||||
def githubBaseUrl = "https://github.com/spring-projects/spring-boot-data-geode"
|
||||
def githubTag = snapshotBuild ? 'master' : project.version
|
||||
|
||||
Reference in New Issue
Block a user