typesafe-config-ext

GitHub Workflow Status Maven Central javadoc

This is the official Greenfossil Scala library for Typesafe-config-ext.

How to Build

This library uses sbt as its build tool. It requires at least Java 17 or later to build.

Follow the official guide on how to install sbt.

Getting Started

Configuration File

Create the application.conf file under:

src/main/resources/application.conf

Default configurations can be found in the reference.conf files of the corresponding library.

Configuration keys found in application.conf will override configurations in the reference.conf files.

Getting the config values

import com.typesafe.config.DefaultConfig

object Config:
  def checkEnv = 
    val env = DefaultConfig().getString("app.env")
    println(s"Current environment is set to: [$env]")

License

typesafe-config-ext is licensed under the Apache license version 2. See LICENSE.