Resource Filter Using SBT

I need to achieve something like Maven filtering, but with SBT:

  • read the .properties files.
  • replace all instances of $ {some.property} in the "filtered" resource file with values ​​read from the properties file

What is the best way to achieve this with sbt?

(I checked the xsbt-filter plugin and the sbt-properties plugin, but I don't know how to even get started)

+5
source share

Source: https://habr.com/ru/post/1205616/


All Articles