Skip to content

Instantly share code, notes, and snippets.

@paulp
Last active October 28, 2017 13:02
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save paulp/923154ab2d61882195cdea47483592ca to your computer and use it in GitHub Desktop.
Save paulp/923154ab2d61882195cdea47483592ca 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 := Seq("-DSBT")
scalacOptions in ThisBuild += "-D0"
scalacOptions in Global += "-D1"
scalacOptions += "-D2"
scalacOptions in compile += "-D3"
scalacOptions in Compile += "-D4"
scalacOptions in p1 += "-D5"
scalacOptions in p1 in compile += "-D6"
scalacOptions in p1 in Compile += "-D7"
scalacOptions in Compile in compile += "-D8"
scalacOptions in p1 in Compile in compile += "-D9"
lazy val root = project in file(".")
lazy val p1 = project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment