asciidoctor / asciidoctor-gradle-plugin

A Gradle plugin that uses Asciidoctor via JRuby to process AsciiDoc source files within the project.
https://asciidoctor.github.io/asciidoctor-gradle-plugin/
Apache License 2.0
286 stars 122 forks source link

How can I set the version for asciidoctorj-pdf artifact? #552

Closed ieugen closed 4 years ago

ieugen commented 4 years ago

Hello,

How can I set the version for asciidoctorj-pdf artifact? I've read how to set the version for asciidoctorj-pdf [1]. However it is not clear.

It will set also a default version for asciidoctorj-pdf artifact. To override set asciidoctorj.pdfVersion or asciidoctorPdf.asciidoctorj.pdfVersion.

Should I pass a java system property, a gradle property, a gradle task property ?

[1] https://asciidoctor.github.io/asciidoctor-gradle-plugin/development-3.x/user-guide/#asciidoctorj-pdf-plugin

ieugen commented 4 years ago

I found an answer by reading the docs again.

asciidoctorj {
  modules {
    pdf {
      version '1.5.3'
    }
  }
}

https://asciidoctor.github.io/asciidoctor-gradle-plugin/development-3.x/user-guide/#asciidoctorj-modules