Skip to content

Commit

Permalink
Merge pull request #710 from asciidoctor/schalk/upgrade-to-grolifant-3
Browse files Browse the repository at this point in the history
Upgrade to Grolifant 3.0.0
  • Loading branch information
ysb33r authored Jan 26, 2024
2 parents 01733d2 + b630cd5 commit 1e16f31
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ project_vcs = https://github.com/asciidoctor/asciidoctor-gradle-plugin.g
cglibVersion = 3.3.0
jsoupVersion = 1.17.2
spockVersion = 2.3-groovy-3.0
grolifantVersion = 2.2.3
grolifantVersion = 3.0.0
jacocoVersion = 0.8.6
codenarcVersion = 3.3.0
nodejsGradleVersion = 2.2.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,14 @@ class AsciidoctorJSRunner {
arguments.addAll([DOCTYPE, doctype.get()])
}

arguments.addAll(attributes.collectMany { String key, String value ->
value ? [ATTR, "${key}=${value}".toString()] : [ATTR, key]
})
attributes.each { String key, String value ->
arguments.addAll(value ? [ATTR, "${key}=${value}".toString()] : [ATTR, key])
}
// Cannot use the better form of code as below, due to some Groovy incompatibility
// Therefore using the above code
// arguments.addAll(attributes.collectMany { String key, String value ->
// value ? [ATTR, "${key}=${value}".toString()] : [ATTR, key]
// })

arguments.addAll(requires.collectMany {
[REQUIRE, it]
Expand Down

0 comments on commit 1e16f31

Please sign in to comment.