Skip to content

Instantly share code, notes, and snippets.

@frgomes
Last active October 16, 2015 12:21
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 frgomes/bb31dda18d21d0e2ce8e to your computer and use it in GitHub Desktop.
Save frgomes/bb31dda18d21d0e2ce8e to your computer and use it in GitHub Desktop.
Scala / SBT - Obtain BuildStructure and root ProjectRef
case class Ctx(_state: State) {
val state: State = _state
val xt: Extracted = Project.extract(state)
val bs: BuildStructure = xt.structure
val pr: ProjectRef = ProjectRef(bs.root, bs.rootProject(bs.root)) //i.e.: the root project!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment