Skip to content

Instantly share code, notes, and snippets.

@yamashiro
Created May 17, 2012 08:07
Show Gist options
  • Save yamashiro/2717307 to your computer and use it in GitHub Desktop.
Save yamashiro/2717307 to your computer and use it in GitHub Desktop.
sbtで既存のタスクの前に処理を実行したいのだが…
val hello = TaskKey[Unit]("hello")
val helloTask = hello <<= streams map { (s: TaskStreams) =>
s.log.info("Hello!")
println("hello")
}
val compile = TaskKey[Unit]("compile")
compile <<= (compile in Compile) dependsOn (hello)
@yamashiro
Copy link
Author

マルチプロジェクト構成で、ここの project の build.sbt に似たようなコード書いたら動いた… orz

@yamashiro
Copy link
Author

s/ここの/個々の/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment