File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
grails-docs/src/main/groovy/grails/doc Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import org.apache.tools.ant.filters.ReplaceTokens
33dependencies {
44 api ( " org.codehaus.groovy:groovy-xml:$groovyVersion " )
55 api ( " org.codehaus.groovy:groovy-templates:$groovyVersion " )
6- api " org.yaml:snakeyaml:1.33 "
6+ api " org.yaml:snakeyaml"
77 api " io.micronaut:micronaut-inject:$micronautVersion "
88
99 compileOnly(" io.methvin:directory-watcher:$methvinDirectoryWatcherVersion " )
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import org.apache.commons.logging.LogFactory
2424import org.radeox.api.engine.WikiRenderEngine
2525import org.radeox.engine.context.BaseInitialRenderContext
2626import org.radeox.engine.context.BaseRenderContext
27+ import org.yaml.snakeyaml.LoaderOptions
2728import org.yaml.snakeyaml.Yaml
2829import org.yaml.snakeyaml.constructor.SafeConstructor
2930
@@ -265,7 +266,7 @@ class DocPublisher {
265266 def legacyLinks = [:]
266267 if (legacyLinksFile. exists()) {
267268 legacyLinksFile. withInputStream { input ->
268- legacyLinks = new Yaml (new SafeConstructor ()). load(input)
269+ legacyLinks = new Yaml (new SafeConstructor (new LoaderOptions () )). load(input)
269270 }
270271 }
271272
@@ -537,7 +538,7 @@ class DocPublisher {
537538 }
538539 else if (propertiesFile. name. endsWith(' .yml' )) {
539540 propertiesFile. withInputStream { input ->
540- def ymls = new Yaml (new SafeConstructor ()). loadAll(input)
541+ def ymls = new Yaml (new SafeConstructor (new LoaderOptions () )). loadAll(input)
541542 for (yml in ymls) {
542543 if (yml instanceof Map ) {
543544 def config = yml. grails?. doc
Original file line number Diff line number Diff line change 11package grails.doc.internal
22
3+ import org.yaml.snakeyaml.LoaderOptions
34import org.yaml.snakeyaml.Yaml
45import org.yaml.snakeyaml.constructor.SafeConstructor
56
67/**
78 * Class representing a Grails user guide table of contents defined in YAML.
89 */
910class YamlTocStrategy {
10- private final parser = new Yaml (new SafeConstructor ())
11+ private final parser = new Yaml (new SafeConstructor (new LoaderOptions () ))
1112 private resourceChecker
1213 private String ext = " .gdoc"
1314
You can’t perform that action at this time.
0 commit comments