Skip to content

Instantly share code, notes, and snippets.

@fluency03
Forked from paulp/build.sbt
Created October 28, 2017 13:02
Show Gist options
  • Select an option

  • Save fluency03/1d91199828e2dc7caae90bc66e38a2d8 to your computer and use it in GitHub Desktop.

Select an option

Save fluency03/1d91199828e2dc7caae90bc66e38a2d8 to your computer and use it in GitHub Desktop.

Revisions

  1. @paulp paulp revised this gist May 4, 2017. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions build.sbt
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,7 @@
    /** Your task is to reason your way to the compiler
    * options which will be passed, for
    /** 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
    * 3) sbt p1/test:compile
    */

    scalacOptions := Seq("-DSBT")
  2. @paulp paulp revised this gist May 4, 2017. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions build.sbt
    Original file line number Diff line number Diff line change
    @@ -2,17 +2,21 @@
    * options which will be passed, for
    * 1) sbt root/compile
    * 2) sbt p1/compile
    * 3) sbt p1/test: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, compile) += "-D8"
    scalacOptions in p1 in (Compile, compile) += "-D9"
    scalacOptions in Compile in compile += "-D8"
    scalacOptions in p1 in Compile in compile += "-D9"

    lazy val root = project in file(".")
    lazy val p1 = project
  3. @paulp paulp created this gist May 4, 2017.
    18 changes: 18 additions & 0 deletions build.sbt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    /** Your task is to reason your way to the compiler
    * options which will be passed, for
    * 1) sbt root/compile
    * 2) sbt p1/compile
    */

    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, compile) += "-D8"
    scalacOptions in p1 in (Compile, compile) += "-D9"

    lazy val root = project in file(".")
    lazy val p1 = project