{"action":"created","issue":{"url":"https://api.github.com/repos/sbt/sbt-buildinfo/issues/75","labels_url":"https://api.github.com/repos/sbt/sbt-buildinfo/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/sbt/sbt-buildinfo/issues/75/comments","events_url":"https://api.github.com/repos/sbt/sbt-buildinfo/issues/75/events","html_url":"https://github.com/sbt/sbt-buildinfo/pull/75","id":119222757,"number":75,"title":"Added buildInfoUsePackageAsPath setting","user":{"login":"peter-fu","id":930535,"avatar_url":"https://avatars.githubusercontent.com/u/930535?v=3","gravatar_id":"","url":"https://api.github.com/users/peter-fu","html_url":"https://github.com/peter-fu","followers_url":"https://api.github.com/users/peter-fu/followers","following_url":"https://api.github.com/users/peter-fu/following{/other_user}","gists_url":"https://api.github.com/users/peter-fu/gists{/gist_id}","starred_url":"https://api.github.com/users/peter-fu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peter-fu/subscriptions","organizations_url":"https://api.github.com/users/peter-fu/orgs","repos_url":"https://api.github.com/users/peter-fu/repos","events_url":"https://api.github.com/users/peter-fu/events{/privacy}","received_events_url":"https://api.github.com/users/peter-fu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-27T16:42:27Z","updated_at":"2015-12-05T16:31:00Z","closed_at":"2015-11-30T02:59:45Z","pull_request":{"url":"https://api.github.com/repos/sbt/sbt-buildinfo/pulls/75","html_url":"https://github.com/sbt/sbt-buildinfo/pull/75","diff_url":"https://github.com/sbt/sbt-buildinfo/pull/75.diff","patch_url":"https://github.com/sbt/sbt-buildinfo/pull/75.patch"},"body":"Added `buildInfoUsePackageAsPath` setting\r\n- If true, the generated object is placed in the folder of the package\r\ninstead of \"sbt-buildinfo\".\r\n\r\nThe problem I'm trying to resolve:\r\n\r\nCurrently, if I set package name to `foo.bar.baz` it generates BuildInfo.scala at the following position, which can't be recognized (\"BuildInfo is unresolved\") in Scala IDE in a Java+Scala mixed project (I haven't tried pure Scala projects). The project can run without problem though (a Play 2.4 project).\r\n\r\n`/target/src_managed/main/sbt-buildinfo/BuildInfo.scala`\r\n\r\nIf the generated scala file is located as following, the Scala IDE is satisfied.\r\n\r\n`/target/src_managed/main/foo/bar/baz/BuildInfo.scala`\r\n\r\nSolution: Move the generated scala file to proper folder according to the package name provided.\r\n\r\nI understand that the problem is caused by something else such as Scala IDE, or Eclipse(JDT). However, this PR provides a workaround before the real problem is addressed. Play twirl and routes have already done that, so Scala IDE works with them well.\r\n\r\nI don't use intellij, but I hope this PR can help with issue #56 and #69, too. The problems described in those issues look similar to mine."},"comment":{"url":"https://api.github.com/repos/sbt/sbt-buildinfo/issues/comments/162218446","html_url":"https://github.com/sbt/sbt-buildinfo/pull/75#issuecomment-162218446","issue_url":"https://api.github.com/repos/sbt/sbt-buildinfo/issues/75","id":162218446,"user":{"login":"chrissom","id":743358,"avatar_url":"https://avatars.githubusercontent.com/u/743358?v=3","gravatar_id":"","url":"https://api.github.com/users/chrissom","html_url":"https://github.com/chrissom","followers_url":"https://api.github.com/users/chrissom/followers","following_url":"https://api.github.com/users/chrissom/following{/other_user}","gists_url":"https://api.github.com/users/chrissom/gists{/gist_id}","starred_url":"https://api.github.com/users/chrissom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrissom/subscriptions","organizations_url":"https://api.github.com/users/chrissom/orgs","repos_url":"https://api.github.com/users/chrissom/repos","events_url":"https://api.github.com/users/chrissom/events{/privacy}","received_events_url":"https://api.github.com/users/chrissom/received_events","type":"User","site_admin":false},"created_at":"2015-12-05T16:31:00Z","updated_at":"2015-12-05T16:31:00Z","body":"How can i get this patch?"}}