現在SBTは私にそれを伝えます<<=
トリガーを追加するために使用していますが、特定のイベントは推奨されていません。SBT 0.13/1.0 - << =/<+ =演算子を置き換えてタスクを再定義するか?
updateBrowsers <<= updateBrowsers.triggeredBy(fastOptJS in Compile)
それは代わりに:=
または~=
を使用することを提案しています。
しかし、いくつかの試行の後にfastOptJS
は、updateBrowsers
タスクをトリガーしなくなりました。
私が試した:
updateBrowsers := updateBrowsers.triggeredBy(fastOptJS in Compile)
updateBrowsers ~= (_ => updateBrowsers.triggeredBy(fastOptJS in Compile))
updateBrowsers := Def.task {
updateBrowsers.triggeredBy(fastOptJS in Compile)
}
updateBrowsers := Def.taskDyn {
updateBrowsers.triggeredBy(fastOptJS in Compile)
}
をので、どのように我々は、タスクの依存関係やタスクがSBT 0.13+でトリガ必要追加できますか?
もし 'dependsOn'リフレーズがうまくいくなら、あなたは答え[ここ](http://stackoverflow.com/questions/41183255/sbt-task-dependson/41190904#41190904)を試すことができます。私は仕事を誘発することはできません。 – jkinkead