{"action":"opened","issue":{"url":"https://api.github.com/repos/sbt/sbt/issues/2200","labels_url":"https://api.github.com/repos/sbt/sbt/issues/2200/labels{/name}","comments_url":"https://api.github.com/repos/sbt/sbt/issues/2200/comments","events_url":"https://api.github.com/repos/sbt/sbt/issues/2200/events","html_url":"https://github.com/sbt/sbt/issues/2200","id":105698293,"number":2200,"title":"error: recursive value service needs type","user":{"login":"kflorence","id":156143,"avatar_url":"https://avatars.githubusercontent.com/u/156143?v=3","gravatar_id":"","url":"https://api.github.com/users/kflorence","html_url":"https://github.com/kflorence","followers_url":"https://api.github.com/users/kflorence/followers","following_url":"https://api.github.com/users/kflorence/following{/other_user}","gists_url":"https://api.github.com/users/kflorence/gists{/gist_id}","starred_url":"https://api.github.com/users/kflorence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kflorence/subscriptions","organizations_url":"https://api.github.com/users/kflorence/orgs","repos_url":"https://api.github.com/users/kflorence/repos","events_url":"https://api.github.com/users/kflorence/events{/privacy}","received_events_url":"https://api.github.com/users/kflorence/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-09T22:41:21Z","updated_at":"2015-09-09T22:41:21Z","closed_at":null,"body":"I have a multi-project build where I have three projects defined: `interface`, `client` and `service` (root project):\r\n\r\n```scala\r\n// Let integration tests inherit test configs and classpaths\r\nlazy val it = config(\"it\") extend Test\r\nlazy val itSettings = inConfig(it)(Defaults.testSettings)\r\n\r\nlazy val interface = (project in file(\"interface\"))\r\n  .settings(commonSettings: _*)\r\n  .settings(...)\r\n\r\nlazy val client = (project in file(\"client\"))\r\n  .configs(it)\r\n  .dependsOn(interface, service % \"test->test\")\r\n  .settings(itSettings: _*)\r\n  .settings(commonSettings: _*)\r\n  .settings(...)\r\n\r\nlazy val service = (project in file(\".\"))\r\n  .configs(it)\r\n  .dependsOn(interface)\r\n  .settings(commonSettings: _*)\r\n  .settings(...)\r\n```\r\n\r\nAs you can see, `client` and `service` both depend on `interface`, and `client` test scope also depends on `service` test scope. This works fine. However, I would like service, as the root project, to also `aggregate` the `client` project -- however, if I add this line to the `service` config:\r\n\r\n```scala\r\n.aggregate(client)\r\n```\r\n\r\nI get the following error in the `client` project definition:\r\n\r\n```\r\n/Users/kflorence/dev/mosaic/utility-service/build.sbt:42: error: recursive value service needs type\r\n  .dependsOn(interface, service % \"test->test\")\r\n```\r\n\r\nIs there any way to make this work?"}}