Skip to content

Instantly share code, notes, and snippets.

@pfn
Created June 26, 2013 22:06
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 pfn/5872172 to your computer and use it in GitHub Desktop.
Save pfn/5872172 to your computer and use it in GitHub Desktop.
sbt plugin dependency wiring
def androidBuild(projects: Project*): Project.SettingsDefinition = {
androidBuild ++
(projects map { p =>
Seq(
collectResources in Android <<=
collectResources in Android dependsOn (compile in Compile in p),
compile in Compile <<= compile in Compile dependsOn(
packageT in Compile in p)
)
}).flatten
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment