build: bump ConfigLib to 4.4.0, fix file encoding

This commit is contained in:
William 2024-01-26 21:08:35 +00:00
parent fc605ce6d7
commit 63ed22527b
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,7 @@ dependencies {
implementation 'net.william278:DesertWell:2.0.4'
implementation 'de.themoep:minedown-adventure:1.7.2-SNAPSHOT'
implementation 'org.bstats:bstats-velocity:3.0.2'
implementation 'com.github.Exlll.ConfigLib:configlib-yaml:v4.3.0'
implementation 'com.github.Exlll.ConfigLib:configlib-yaml:v4.4.0'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
}

View File

@ -28,6 +28,7 @@ import org.jetbrains.annotations.NotNull;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;
import java.util.Objects;
@ -40,6 +41,7 @@ public interface ConfigProvider {
@NotNull
YamlConfigurationProperties.Builder<?> YAML_CONFIGURATION_PROPERTIES = YamlConfigurationProperties.newBuilder()
.charset(StandardCharsets.UTF_8)
.setNameFormatter(NameFormatters.LOWER_UNDERSCORE);
/**