scala - how to create different builds using sbt based on environment? -


i using sbt scala project, want create build different environment local, development, stage , production. these build have different property file, log4j file , token files. handle need different folders files under src/main/resources local, dev, stage , prod. based on build environment should pick files respective folders. can guide me using sbt.

instead of create different files use environment variables inside https://github.com/typesafehub/config , instance:

akka {   loglevel = "debug"   loglevel = ${?loglevel} } 

if loglevel not set "debug" default config. anyway, if want include different files making jars can use different configuration sbt-assembly plugging.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -