mirror of
https://github.com/LOOHP/Limbo.git
synced 2026-06-07 21:41:43 +00:00
Upgrade snack yaml version
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user