问题
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