Configuration library for JVM languages
open sourceApache-2.0free
Typesafe Config is a configuration library for JVM languages, written in plain Java with no dependencies. It reads Java properties, JSON and HOCON, a human-friendly JSON superset with comments, includes, substitutions and environment variables, and merges files from disk, URLs or the classpath, so an app and its framework and libraries can be configured from one application.conf. Values can be overridden with Java system properties, durations and sizes such as "10 seconds" or "512k" are parsed, and the API is built on immutable Config objects. It is the configuration foundation of Akka and other JVM libraries.
Problems it solves
- load layered configuration files in a JVM app with defaults that libraries ship
- override settings in my Java app with environment variables or system properties
- write config files with comments and substitutions instead of plain JSON
Features
- reads Java properties, JSON and HOCON files
- merges config files from disk, URLs and the classpath
- overrides with Java system properties and environment variables
- parses durations and sizes such as "10 seconds" and "512k"
- immutable, thread-safe Config API
- no dependencies beyond Java 8
Limitations
- Lightbend considers it feature complete: it keeps up with new JVM versions but rarely makes other changes1
