Last active
October 16, 2015 12:21
-
-
Save frgomes/bb31dda18d21d0e2ce8e to your computer and use it in GitHub Desktop.
Scala / SBT - Obtain BuildStructure and root ProjectRef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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