Skip to content

Commit

Permalink
Merge pull request #706 from sbt/global-rhs
Browse files Browse the repository at this point in the history
Tweak the global RHS part of the best practices
  • Loading branch information
dwijnand authored Jul 24, 2018
2 parents 3e78d92 + fe128d7 commit 7d4cf74
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,9 @@ or scoped to `ThisBuild` affecting all subprojects:
ThisBuild / obfuscate / obfuscateOption := ObfuscateOption().withX(true)
```

This requires in-depth knowledge to know that RHS are all contained in
global scope (pure values and other global settings), but it's a useful technique.
Giving keys default values in global scope requires knowing that every key (if any)
used to define that key must _also_ be defined in global scope, otherwise it will
fail at load time.

#### Using a "main" task scope for settings

Expand Down

0 comments on commit 7d4cf74

Please sign in to comment.