From e944eec255ce20fa8370f57acbbc9ac5f3210549 Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Thu, 30 Apr 2020 13:43:01 +0200 Subject: [PATCH] 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. --- build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/build.gradle b/build.gradle index 4547ebde..2aa63fc9 100644 --- a/build.gradle +++ b/build.gradle @@ -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 {