{"action":"created","issue":{"url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/184","labels_url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/184/comments","events_url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/184/events","html_url":"https://github.com/kelemen/netbeans-gradle-project/issues/184","id":58878487,"number":184,"title":"NetBeans ignores sourceSets specs","user":{"login":"wvreeven","id":6429392,"avatar_url":"https://avatars.githubusercontent.com/u/6429392?v=3","gravatar_id":"","url":"https://api.github.com/users/wvreeven","html_url":"https://github.com/wvreeven","followers_url":"https://api.github.com/users/wvreeven/followers","following_url":"https://api.github.com/users/wvreeven/following{/other_user}","gists_url":"https://api.github.com/users/wvreeven/gists{/gist_id}","starred_url":"https://api.github.com/users/wvreeven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvreeven/subscriptions","organizations_url":"https://api.github.com/users/wvreeven/orgs","repos_url":"https://api.github.com/users/wvreeven/repos","events_url":"https://api.github.com/users/wvreeven/events{/privacy}","received_events_url":"https://api.github.com/users/wvreeven/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-02-25T10:08:22Z","updated_at":"2015-09-02T13:25:38Z","closed_at":"2015-03-04T19:06:47Z","body":"For historic reasons all source code files in my projects reside inside the src directory. However, all test classes are inside <package>/test subdirectories (yuck, I know...).\r\n\r\nI added a sourceSets definition in the build.gradle file which gets respected when building and testing with Gradle, both from the command line and from within NetBeans. However, the Projects tab shows all source files both in the Source Packages and Test Packages trees. This is how I defined the sourceSets:\r\n\r\n    sourceSets {\r\n        main {\r\n            java {\r\n                srcDir 'src'\r\n                exclude '**/test/'\r\n            }\r\n        }\r\n        test {\r\n            java {\r\n                srcDir 'src'\r\n                include '**/test/'\r\n            }\r\n        }\r\n    }\r\n"},"comment":{"url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/comments/137078051","html_url":"https://github.com/kelemen/netbeans-gradle-project/issues/184#issuecomment-137078051","issue_url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/184","id":137078051,"user":{"login":"gallardo","id":790448,"avatar_url":"https://avatars.githubusercontent.com/u/790448?v=3","gravatar_id":"","url":"https://api.github.com/users/gallardo","html_url":"https://github.com/gallardo","followers_url":"https://api.github.com/users/gallardo/followers","following_url":"https://api.github.com/users/gallardo/following{/other_user}","gists_url":"https://api.github.com/users/gallardo/gists{/gist_id}","starred_url":"https://api.github.com/users/gallardo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gallardo/subscriptions","organizations_url":"https://api.github.com/users/gallardo/orgs","repos_url":"https://api.github.com/users/gallardo/repos","events_url":"https://api.github.com/users/gallardo/events{/privacy}","received_events_url":"https://api.github.com/users/gallardo/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T13:25:38Z","updated_at":"2015-09-02T13:25:38Z","body":"Thank you!"}}