Skip to content

Commit 9c949e0

Browse files
committed
Upgrade to asciidoctor-gradle-plugin 4.0.4
1 parent 2bb31be commit 9c949e0

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ pdfThemes {
3030
}
3131

3232
asciidoctorj {
33-
// asciidoctorj 3.0.0 doesn't seem to work with asciidoctor-gradle-plugin 4.0.3
34-
version = '2.5.13'
33+
version = '3.0.0'
3534

3635
docExtensions file('doc-extension.groovy')
3736
}

buildSrc/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ dependencies {
5151
compileOnly gradleApi()
5252
compileOnly localGroovy()
5353

54-
implementation 'org.asciidoctor.jvm.base:org.asciidoctor.jvm.base.gradle.plugin:4.0.3'
55-
implementation 'org.asciidoctor.jvm.pdf:org.asciidoctor.jvm.pdf.gradle.plugin:4.0.3'
54+
implementation 'org.asciidoctor.jvm.base:org.asciidoctor.jvm.base.gradle.plugin:4.0.4'
55+
implementation 'org.asciidoctor.jvm.pdf:org.asciidoctor.jvm.pdf.gradle.plugin:4.0.4'
5656

5757
implementation 'xerces:xercesImpl:2.12.2'
5858
implementation 'xml-resolver:xml-resolver:1.2'

doc-extension.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
docinfo_processor {
22
document -> {
3-
if (!document.basebackend('html') || !document.hasAttribute('fb-canonical-html')) {
3+
if (!document.isBasebackend('html') || !document.hasAttribute('fb-canonical-html')) {
44
return
55
}
66
return "<link rel=\"canonical\" href=\"${document.getAttribute('fb-canonical-html')}\"/>"

0 commit comments

Comments
 (0)