Do not render PDF reference doc for SNAPSHOT builds

This commit ensures that only the HTML version of the reference
documentation is rendered for SNAPSHOT builds. This speeds up
significatly the build.

Issue: SPR-15885
This commit is contained in:
Brian Clozel
2017-08-21 14:42:21 +02:00
parent 5460c0095b
commit 9341955107

View File

@@ -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': '',