File types

It's OK to prefer different file types.

The default file type for configurations is YAML, but we do support multiple file type (check all supported types here).

To switch between then is as easy as changing one option on your @Configuration annotation.

import com.github.secretx33.sccfg.api.*;

// switch your config to hocon
@Configuration(type = FileType.HOCON)
public class MyConfig {
    // ...
}

IMPORTANT: Do not forget to add the respective serializer module for the chosen file type, otherwise sc-cfg will throw MissingSerializerDependency.

Last updated