I have a Typesafe config file (application.conf). I want to override some settings with system environment variables (like in Overriding configuration with environment variables in typesafe config), but I would like to do some modifications to the value in the environment variable (ex. toLowerCase, replace('\', '/'), split("/"))
So I had something like this:
# C:\Users\...\project_root\sub_project\src\main\resources\application.conf
foo = {
bar = "baz"
}
And I change it to this:
foo = {
bar = "baz"
bar = ${?FOO}
}
But now I want to do this:
foo = {
bar = "baz"
bar = ${?FOO.toLowerCase}
}
When I run sbt update
on my project the Typesafe Config dependency I have is this:
[info] Resolving com.typesafe#config;1.2.1 ...