diff --git a/gradle/docs.gradle b/gradle/docs.gradle index 87ac999fba..cad51f9a61 100644 --- a/gradle/docs.gradle +++ b/gradle/docs.gradle @@ -54,7 +54,11 @@ asciidoctor { include '*.adoc' } logDocuments = true - backends = ["html5", "pdf"] + backends = ["html5"] + // only ouput PDF documentation for non-SNAPSHOT builds + if(!project.getVersion().toString().contains("BUILD-SNAPSHOT")) { + backends += "pdf" + } options doctype: 'book', eruby: 'erubis' attributes 'icons': 'font', 'idprefix': '',