aalmiray / lazybones-template-collection

A set of Lazybones templates
8 stars 3 forks source link

Asciidoctor template fails on pdf backend #1

Open lordofthejars opened 9 years ago

lordofthejars commented 9 years ago

This is the first time I use lazybones and it is really awesome. Only one thing that I have noticed.

I have installed gvm and then I have installed lazybones. Then I call:

lazybones create asciidoctor-gradle test and it creates correctly the directory structure, and then I call gradlew asciidoctor and the html5 output is produced. But then I open build.gradle and I change the backend from html5 to pdf

backends = ['pdf']

And then when I run gradlew asciidoctor next message is shown:

:asciidoctor
Passing through unknown backend: pdf

and no pdf is generated. But the funny part is that then I rerun again the gradlew asciidoctor and this second time it works perfectly and generates the pdf.

Any idea?

aalmiray commented 9 years ago

The warning about the unknown backend is well known and fixed in the upcoming 1.5.3 version. However the fact that the build takes two passes to build the actual PDF makes me think that the cached backend value is interfering with the build somehow. Either way this is a problem on the gradle-plugin and not the lazybones template. Thanks for pointing this out tho :smile: