I need to load application.conf via typesafe's ConfigFactory within an sbt Task

与世无争的帅哥 提交于 2019-12-22 10:48:37

问题


I have a simple project here:

https://github.com/bloo/foo-gen-config/

.. that does one thing - load sbt and runs the task foo-gen, which fails.

The Task def is here:

https://github.com/bloo/foo-gen-config/blob/master/project/FooConfigPlugin.scala#L19-L25

(I alluded to this question along with a number of other convoluted issues here: How to make a sbt task use a specific configuration scope? but have since distilled it down to a single issue I need help with)

I am open to suggestions on how to handle this, but I definitely want to keep application.conf in src/main/resources. Thanks!

Quickstart:

git clone https://github.com/bloo/foo-gen-config.git
cd foo-gen-config/
sbt foo-gen

$35 Bounty

https://www.bountysource.com/issues/1450100-how-to-load-application-conf-via-typesafe-s-configfactory-within-an-sbt-task

来源:https://stackoverflow.com/questions/22720360/i-need-to-load-application-conf-via-typesafes-configfactory-within-an-sbt-task

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!