Skip to content

Instantly share code, notes, and snippets.

@shajra
Created June 15, 2017 16:53
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/22e498ea9b4501643e6ae5f26df181b1 to your computer and use it in GitHub Desktop.
Save shajra/22e498ea9b4501643e6ae5f26df181b1 to your computer and use it in GitHub Desktop.
QUIZ: What is compile:foo?
val foo = settingKey[Int]("foo")
val bar = settingKey[Int]("bar")
val baz = settingKey[Int]("baz")
inConfig(Compile)(foo := bar.value)
bar := 1
bar in Compile := baz.value
baz := 2
baz in Compile := 3
@shajra
Copy link
Author

shajra commented Jun 15, 2017

What is the answer to this in an SBT console?

> show compile:foo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment