{"action":"created","issue":{"url":"https://api.github.com/repos/ihji/sbt-antlr4/issues/7","labels_url":"https://api.github.com/repos/ihji/sbt-antlr4/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/ihji/sbt-antlr4/issues/7/comments","events_url":"https://api.github.com/repos/ihji/sbt-antlr4/issues/7/events","html_url":"https://github.com/ihji/sbt-antlr4/pull/7","id":128008778,"number":7,"title":"Appends 'antlr4' to the javaSource directory for generated Java code.","user":{"login":"allertonm","id":89732,"avatar_url":"https://avatars.githubusercontent.com/u/89732?v=3","gravatar_id":"","url":"https://api.github.com/users/allertonm","html_url":"https://github.com/allertonm","followers_url":"https://api.github.com/users/allertonm/followers","following_url":"https://api.github.com/users/allertonm/following{/other_user}","gists_url":"https://api.github.com/users/allertonm/gists{/gist_id}","starred_url":"https://api.github.com/users/allertonm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allertonm/subscriptions","organizations_url":"https://api.github.com/users/allertonm/orgs","repos_url":"https://api.github.com/users/allertonm/repos","events_url":"https://api.github.com/users/allertonm/events{/privacy}","received_events_url":"https://api.github.com/users/allertonm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-21T20:08:07Z","updated_at":"2016-01-21T21:02:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ihji/sbt-antlr4/pulls/7","html_url":"https://github.com/ihji/sbt-antlr4/pull/7","diff_url":"https://github.com/ihji/sbt-antlr4/pull/7.diff","patch_url":"https://github.com/ihji/sbt-antlr4/pull/7.patch"},"body":"This fixes a problem that manifests itself when projects using this plugin are converted to IntelliJ projects using gen-idea. SBT expects plugins to put their generated source in a sub-directory of sourceManaged, named for the plugin. In order to support this, gen-idea appears to add the first level of directories under src_managed/main as \"source paths\" in the generated project, and so if you specify antlr4PackageName, the top level of the package hierarchy gets added as a project source path by accident. You can probably guess how well this works out.\r\n\r\nPutting sbt-antlr4's generated code one level down, under 'antlr4', prevents this problem."},"comment":{"url":"https://api.github.com/repos/ihji/sbt-antlr4/issues/comments/173706803","html_url":"https://github.com/ihji/sbt-antlr4/pull/7#issuecomment-173706803","issue_url":"https://api.github.com/repos/ihji/sbt-antlr4/issues/7","id":173706803,"user":{"login":"FranklinChen","id":134491,"avatar_url":"https://avatars.githubusercontent.com/u/134491?v=3","gravatar_id":"","url":"https://api.github.com/users/FranklinChen","html_url":"https://github.com/FranklinChen","followers_url":"https://api.github.com/users/FranklinChen/followers","following_url":"https://api.github.com/users/FranklinChen/following{/other_user}","gists_url":"https://api.github.com/users/FranklinChen/gists{/gist_id}","starred_url":"https://api.github.com/users/FranklinChen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FranklinChen/subscriptions","organizations_url":"https://api.github.com/users/FranklinChen/orgs","repos_url":"https://api.github.com/users/FranklinChen/repos","events_url":"https://api.github.com/users/FranklinChen/events{/privacy}","received_events_url":"https://api.github.com/users/FranklinChen/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T21:02:39Z","updated_at":"2016-01-21T21:02:39Z","body":"Right. I've been using a workaround with\r\n\r\n```scala\r\njavaSource in Antlr4 := (javaSource in Antlr4).value / \"antlr4\"\r\n```\r\nbut the default should be cleaner."}}