Skip to content

Commit

Permalink
Update to Grails 4.1.3 (#263)
Browse files Browse the repository at this point in the history
* Update to Grails 4.1.3

* Replace deprecated constructor calls

---------

Co-authored-by: Guillermo Calvo <[email protected]>
  • Loading branch information
puneetbehl and guillermocalvo authored Dec 5, 2023
1 parent f5d5b18 commit 54db3fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
projectVersion=4.1.3-SNAPSHOT
grailsVersion=4.1.1
grailsVersion=4.1.3
springBootVersion=2.2.13.RELEASE
groovyVersion=2.5.14
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import org.grails.cli.profile.commands.script.GroovyScriptCommand
import org.grails.cli.profile.commands.script.GroovyScriptCommandTransform
import org.grails.gradle.plugin.profiles.GrailsProfileGradlePlugin
import org.yaml.snakeyaml.DumperOptions
import org.yaml.snakeyaml.LoaderOptions
import org.yaml.snakeyaml.Yaml
import org.yaml.snakeyaml.constructor.SafeConstructor
import org.yaml.snakeyaml.representer.Representer
Expand Down Expand Up @@ -95,7 +96,7 @@ class ProfileCompilerTask extends AbstractCompile {

def options = new DumperOptions()
options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK)
def yaml = new Yaml(new SafeConstructor(), new Representer(), options)
def yaml = new Yaml(new SafeConstructor(new LoaderOptions()), new Representer(options), options)
Map<String, Object> profileData
if(profileYmlExists) {
profileData = (Map<String, Object>) config.withReader { BufferedReader r ->
Expand Down

0 comments on commit 54db3fb

Please sign in to comment.