Configuration library for Scala which is a direct translation from the original widely used Java library.
Care has been taken to keep the API the same but source changes are needed to use this library. Otherwise we recommend the original at https://github.com/lightbend/config.
libraryDependencies += "org.ekrich" %% "sconfig" % "X.Y.Z"
To use in sbt, replace
X.Y.Z with the version from Maven Central badge above.
Usage and Help
The following changes are needed if migrating from the original Java version.
- Change the package organization name from
- Other code sites may require removing
()where the method just returns state. This is to follow the Scala convention which supports the uniform access principle .
- The serialization format has changed due to the package name change. This could require special consideration.
The following document copies are local to this repository but internal links may refer to the original site documents via hyperlink.
Overview - A comprehensive guide to configuration.
HOCON - The HOCON Specification
Release 0.7.0 - (2018-12-14)
: Odersky, Spoon, & Venners (2016). Programming in Scala (3rd Ed), (pp. 185-188)