harrah/xsbt — Issue #280: Cyclic dependencies
Author: hseeberger
Created: 2011-11-26 09:16:17+00:00
State: open

I would like to have a not-anemic root project, i.e. one that contains some code, and a subproject which has a class path dependency. So far so good. But adding a aggregation dependency from the root project to the sub project is invalid.

```scala
object Build extends Build {

lazy val root: Project = Project(
"root",
file("."),
aggregate = Seq(sub)
)

lazy val sub: Project = Project(
"sub",
file("sub"),
dependencies = Seq(root)
)
}
```

This leads to the following error:

```
[error] Cyclic reference involving
[error] ProjectRef(file:/Users/heiko/tmp/test/,root)
[error] ProjectRef(file:/Users/heiko/tmp/test/,sub)
```