Reading the application configuration

To read the application configuration files, we have decided to use Typesafe config: https://github.com/typesafehub/config. It is a mature and well-maintained library, supports various configuration formats, and is quite easy to use. We have included it in our pom.xml file using the following statement:

<dependency>    <groupId>com.typesafe</groupId>    <artifactId>config</artifactId>    <version>${typesafe.config.version}</version></dependency>

The same dependency is added to build.sbt using the following line:

"com.typesafe" % "config" % typesafeConfigVersion

Get Scala Design Patterns - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.