Skip to content

Instantly share code, notes, and snippets.

@julienrf
Last active February 15, 2017 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julienrf/fbcdf4eb368e048b111a19f8a72a34ed to your computer and use it in GitHub Desktop.
Save julienrf/fbcdf4eb368e048b111a19f8a72a34ed to your computer and use it in GitHub Desktop.
InputKey[Unit]("charts") := Def.inputTaskDyn {
val targetDir = crossTarget.value
val report = targetDir / "report.json"
Def.task {
val _ = (run in Compile).fullInput(s" ${report.absolutePath}").evaluated
// ^ Illegal dynamic dependency
strawman.collection.Bencharts(report, "Memory footprint (lower is better)", targetDir)
}
}.inputTaskValue
InputKey[Unit]("charts") := {
val targetDir = crossTarget.value
val report = targetDir / "report.json"
val _ = (run in Compile).fullInput(s" ${report.absolutePath}").evaluated
// ^ Illegal dynamic reference: report
strawman.collection.Bencharts(report, "Memory footprint (lower is better)", targetDir)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment