Skip to content

Instantly share code, notes, and snippets.

@shajra
Forked from paulp/build.sbt
Created June 14, 2017 11:31
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 shajra/0a62395d7470cecfb5033c45470d53ad to your computer and use it in GitHub Desktop.
Save shajra/0a62395d7470cecfb5033c45470d53ad 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