Skip to content

Commit

Permalink
Upgrade to asciidoctor-gradle-plugin 4.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mrotteveel committed Dec 21, 2024
1 parent 2bb31be commit 9c949e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ pdfThemes {
}

asciidoctorj {
// asciidoctorj 3.0.0 doesn't seem to work with asciidoctor-gradle-plugin 4.0.3
version = '2.5.13'
version = '3.0.0'

docExtensions file('doc-extension.groovy')
}
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ dependencies {
compileOnly gradleApi()
compileOnly localGroovy()

implementation 'org.asciidoctor.jvm.base:org.asciidoctor.jvm.base.gradle.plugin:4.0.3'
implementation 'org.asciidoctor.jvm.pdf:org.asciidoctor.jvm.pdf.gradle.plugin:4.0.3'
implementation 'org.asciidoctor.jvm.base:org.asciidoctor.jvm.base.gradle.plugin:4.0.4'
implementation 'org.asciidoctor.jvm.pdf:org.asciidoctor.jvm.pdf.gradle.plugin:4.0.4'

implementation 'xerces:xercesImpl:2.12.2'
implementation 'xml-resolver:xml-resolver:1.2'
Expand Down
2 changes: 1 addition & 1 deletion doc-extension.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
docinfo_processor {
document -> {
if (!document.basebackend('html') || !document.hasAttribute('fb-canonical-html')) {
if (!document.isBasebackend('html') || !document.hasAttribute('fb-canonical-html')) {
return
}
return "<link rel=\"canonical\" href=\"${document.getAttribute('fb-canonical-html')}\"/>"
Expand Down

0 comments on commit 9c949e0

Please sign in to comment.