See also night-config/README.md.
repositories {
maven("https://jitpack.io")
}
dependencies {
implementation("com.github.ElytraServers.night-config-expand:night-config-spec:${VERSION}")
implementation("com.github.ElytraServers.night-config-expand:night-config-kotlin:${VERSION}")
}Spec module is ripped from NeoForge under LGPLv2.1 (NeoForge/LICENSE.txt and FancyModLoader/LICENSE.txt).
It provides a convenient ModConfigSpec, where you can define the properties and ask the library to help you with converting. The NeoForge-specific code is removed for generic purpose.
See the example TestSimple.java.