mirror of https://github.com/LOOHP/Limbo.git
Upgrade snack yaml version
This commit is contained in:
parent
61331a3ea1
commit
a43aa18a22
2
pom.xml
2
pom.xml
|
|
@ -246,7 +246,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.yaml</groupId>
|
<groupId>org.yaml</groupId>
|
||||||
<artifactId>snakeyaml</artifactId>
|
<artifactId>snakeyaml</artifactId>
|
||||||
<version>1.26</version>
|
<version>2.3</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@ public class FileConfiguration {
|
||||||
options.setIndent(2);
|
options.setIndent(2);
|
||||||
options.setPrettyFlow(true);
|
options.setPrettyFlow(true);
|
||||||
options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
|
options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
|
||||||
Representer customRepresenter = new Representer();
|
Representer customRepresenter = new Representer(options);
|
||||||
YamlOrder customProperty = new YamlOrder();
|
YamlOrder customProperty = new YamlOrder();
|
||||||
customRepresenter.setPropertyUtils(customProperty);
|
customRepresenter.setPropertyUtils(customProperty);
|
||||||
Yaml yaml = new Yaml(customRepresenter, options);
|
Yaml yaml = new Yaml(customRepresenter, options);
|
||||||
|
|
@ -145,7 +145,7 @@ public class FileConfiguration {
|
||||||
options.setIndent(2);
|
options.setIndent(2);
|
||||||
options.setPrettyFlow(true);
|
options.setPrettyFlow(true);
|
||||||
options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
|
options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
|
||||||
Representer customRepresenter = new Representer();
|
Representer customRepresenter = new Representer(options);
|
||||||
YamlOrder customProperty = new YamlOrder();
|
YamlOrder customProperty = new YamlOrder();
|
||||||
customRepresenter.setPropertyUtils(customProperty);
|
customRepresenter.setPropertyUtils(customProperty);
|
||||||
Yaml yaml = new Yaml(customRepresenter, options);
|
Yaml yaml = new Yaml(customRepresenter, options);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue