scala - SBT: external config file with values accessible in build.sbt -
i have sbt project of standard structure. i'd have file, separate build , specify there values use in build.scala or build.sbt (to omit spoiling repository local configurations).
it may plain .properties format or scala file, or typesafe config, or other (common .sbt practice welcomed of course):
prop1=value1 prop2=42 .......
is there common practice values accessible in sbt build files? want pass them test arguments keep off of build files themselves.
i had similar problem. created github repository solution:
https://github.com/darkocerdic/sbt-config
create new file @ project/resources/local.properties , add new values values in default.properties file.
local.properties file in .gitignore not propagate outside local setup.
look @ build.sbt example usage of defined properties.
Comments
Post a Comment