Skip to content

Commit

Permalink
Upgrade to Grolifant 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ysb33r committed Jan 22, 2024
1 parent 01733d2 commit b630cd5
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 b630cd5

Please sign in to comment.