SBT에서 일부 로그인하고 싶습니다. 을 초기화 할 때 streams
을 얻으려고했습니다. 그러나 컴파일러는 A setting cannot depend on a task
을 불평합니다.SBT에 settingKey에 로그인하는 방법?
구성 스 니펫은 여기에 있습니다.
val appConfig = settingKey[Config]("The parsed application.conf in SBT")
appConfig := {
// ...
streams.value.log.error("Cannot find application.conf. Please check if -Dconfig.file/resource is setting correctly.")
// ...
}
settingKey
에 로그인하는 방법이 있습니까? 감사.
[sbt 설정 초기화 중 스트림으로 인쇄하는 방법] 가능한 복제본 (http://stackoverflow.com/questions/33765889/how-to-print-to-stream-during-sbt-setting-initialization) – Caoilte