Render asciidoc PDF version only for releases

This commit guards the PDF generation of the asciidoc reference
documentation with a version check.

Since the PDF generation takes a significant amount of time to build,
we should only generate it for non-SNAPSHOT versions.
This commit is contained in:
Brian Clozel
2020-04-30 13:43:01 +02:00
committed by Rossen Stoyanchev
parent 780bb68bdb
commit e944eec255

View File

@@ -158,6 +158,7 @@ configure(rootProject) {
task('makePDF', type: org.asciidoctor.gradle.AsciidoctorTask) {
dependsOn prepareAsciidocBuild
onlyIf { !project.version.endsWith("SNAPSHOT") }
backends 'pdf'
sourceDir "$buildDir/asciidoc/build"
sources {