Created
September 17, 2014 19:38
-
-
Save EECOLOR/ebe28526e37598860baa to your computer and use it in GitHub Desktop.
Sbt cyclic project dependencies. Helps in tying projects together if they depend on eachother.
This file contains hidden or 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
internalDependencyClasspath in Compile in `play-cms-testing` += | |
interProjectDependency(`play-cms`, Compile).value | |
internalDependencyClasspath in Test in `play-cms` += | |
interProjectDependency(`play-cms-testing`, Compile).value | |
def interProjectDependency(project:Project, configuration:Configuration) = Def.task { | |
Attributed.blank( | |
(classDirectory in configuration in project) | |
.map(identity) // convert the setting into a task | |
.dependsOn(compile in configuration in project) | |
.value | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment