Trouble creating epub3 output

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Trouble creating epub3 output

I have a gradle build that outputs HTML and PDF from my asciidoc document. I am now trying to add epub3 output, but it fails with:

(NoMethodError) undefined method `to_sym' for nil:NilClass
Did you mean?  to_s

This is my build.gradle:

buildscript {
    repositories {

    dependencies {
        classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.7'
        classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.16'
        classpath 'org.asciidoctor:asciidoctorj-epub3:1.5.0-alpha.8.1'

plugins {
    id 'org.asciidoctor.convert' version '1.5.7'

version = '0.0.1-SNAPSHOT'

apply plugin: 'java'
apply plugin: 'org.asciidoctor.convert'

asciidoctorj {
    version = '1.5.6'

asciidoctor {
    backends 'html5', 'pdf', 'epub3'
    options doctype: 'book'
    attributes 'build-gradle': file('build.gradle'),
            'imagesdir': './images',
            'icons': 'font'

defaultTasks 'asciidoctor'

I also get lots of warnings that "tag 'foo' not found in include file: /Users/wdb/Projects/....."

I am running on Java 8, on Mac OS X.