Skip to content

Instantly share code, notes, and snippets.

@dwijnand
Forked from paulp/build.sbt
Last active May 4, 2017 21:02
Show Gist options
  • Save dwijnand/1e8285d0ec6b4c8b41df4512c6bf78b1 to your computer and use it in GitHub Desktop.
Save dwijnand/1e8285d0ec6b4c8b41df4512c6bf78b1 to your computer and use it in GitHub Desktop.
/** Your task is to reason your way to which compiler
* options which will be passed for each of
* 1) sbt root/compile
* 2) sbt p1/compile
*/
scalacOptions in Global += "-D1"
scalacOptions in ThisBuild += "-D0"
scalacOptions := Seq("-DSBT")
scalacOptions += "-D2"
scalacOptions in compile += "-D3"
scalacOptions in Compile += "-D4"
scalacOptions in Compile in compile += "-D8"
scalacOptions in p1 += "-D5"
scalacOptions in p1 in compile += "-D6"
scalacOptions in p1 in Compile += "-D7"
scalacOptions in p1 in Compile in compile += "-D9"
val root = project in file(".")
val p1 = project
// -DSBT -D2 -D4 -D8
// -D1 -D0 -D5 -D7 -D9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment