All Versions
4
Latest Version
Avg Release Cycle
152 days
Latest Release
2591 days ago
Changelog History
Changelog History
-
v1.0.1 Changes
August 14, 2017 -
v1.0.0 Changes
November 03, 2016- โฌ๏ธ Upgraded to
"com.typesafe" % "config" % "1.3.1"
- Cross compiled against Scala "2.11.8" and "2.12.0-RC1"
- โฌ๏ธ Upgraded to
-
v0.2.0 Changes
May 15, 2016๐ New Features
- โ Added support for HOCON array values through
as[Seq[T]]
andasOption[Seq[T]]
- ๐ Converted value extraction to use user-extensible typeclass pattern. See README for details.
๐ Changes
๐ฅ Breaking Changes
asSize
has gone away in preference foras[ConfigMemorySize]
, which normalizes it's usage with rest of API.
- โ Added support for HOCON array values through
-
v0.1.0 Changes
May 14, 2016๐ง Simple Scala Config is Typesafe Config wrapped in a
Dynamic
Scala blanket. It is an extremely thin wrapper (less than 100 SLOC), allowing retrieval of configuration values using field-dereference syntax.Supports field-dereference syntax for Typesafe Config lookups, supporting types
T
andOption[T]
whereT
is{Boolean|Int|Double|Long|Float|String|Duration|Path|File|Config|AnyRef}
.object MyConfig extends SSConfig()val tmp = MyConfig.myapp.tempdir.as[Path]val runtime = MyConfig.java.runtime.name.as[String]val timeout = MyConfig.akka.actor.`creation-timeout`.as[Duration].getSecondsval debugMode = MyConfig.app.debug.asOption[Boolean].getOrElse(false)
๐ Allows nested configuration via optional path parameter:
object AkkaConfig extends SSConfig("akka")val akkaVersion = AkkaConfig.version.as[String]val timeout = AkkaConfig.actor.`creation-timeout`.as[Duration].getSeconds
๐ Allows custom config loading via optional
Config
parameter:val props = new SSConfig(ConfigFactory.load("myprops.properties"))val version = props.version.as[String]