{"action":"created","issue":{"url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/193","labels_url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/193/comments","events_url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/193/events","html_url":"https://github.com/kelemen/netbeans-gradle-project/issues/193","id":66881973,"number":193,"title":"Group sources and resources nodes under sourceSet name","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},"labels":[{"url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":33,"created_at":"2015-04-07T13:22:40Z","updated_at":"2015-08-27T10:55:51Z","closed_at":null,"body":"I have imported a project that defines several (many) sourceSets for corresponding tasks. The current project tree view under these circumstances is almost useless. It'd be very convenient to group the nodes by their sourceSet.\r\n\r\nTake the following `build.gradle` as example:\r\n\r\n    apply plugin: 'java'\r\n\r\n    sourceCompatibility = '1.8'\r\n    [compileJava, compileTestJava]*.options*.encoding = 'UTF-8'\r\n\r\n    ['a','b','c','d','e','f','g'].each { moduleName ->\r\n        sourceSets.create('org.example.gradlemodule.' + moduleName, {\r\n                java.srcDir \"src/main/java\"\r\n                resources.srcDir \"src/main/resources\"\r\n            })\r\n\r\n    }\r\n\r\nThe corresponding tree is very confusing:\r\n![image](https://cloud.githubusercontent.com/assets/790448/7023977/d35ff5f2-dd39-11e4-979b-cb7526fa7271.png)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/comments/135382303","html_url":"https://github.com/kelemen/netbeans-gradle-project/issues/193#issuecomment-135382303","issue_url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/193","id":135382303,"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-08-27T10:55:51Z","updated_at":"2015-08-27T10:55:51Z","body":"Uhmmm...\r\n\r\n> I can't tell where those dependencies came from\r\n\r\nand\r\n> \"provided\" is simply _compile - runtime_.\r\n\r\nSo for the following gradle project (same as example in https://github.com/kelemen/netbeans-gradle-project/issues/234), shouldn't `print.jar` be listed under `Dependencies - Compile for x` too? I've seen `Compile`, `Provided` and `Runtime` dependencies. What criteria drives the classification and listing of the dependencies under corresponding nodes? Or is this a bug?\r\n\r\n```groovy\r\napply plugin: 'java'\r\n\r\nrepositories {\r\n    mavenCentral()\r\n}\r\n\r\nsourceSets {\r\n    x {\r\n        compileClasspath += files(\"$buildDir/classes/main\") { builtBy 'compileJava' }\r\n        compileClasspath += files(\"lib/print.jar\")\r\n    }\r\n}\r\n\r\ndependencies {\r\n    xCompile 'org.slf4j:slf4j-simple:1.7.12'\r\n}\r\n```\r\n\r\n\r\n![image](https://cloud.githubusercontent.com/assets/790448/9518835/60c54ef2-4cba-11e5-8946-925b37b13fb7.png)\r\n\r\n\r\nApparently, if I add `print.jar` to the `runtimeClasspath` too, it is listed under `Compile for x` and there is no more `Provided` (agreeing with \"provided = compile - runtime\"):\r\n```groovy\r\n...\r\nsourceSets.x.runtimeClasspath += files(\"lib/print.jar\")\r\n...\r\n```\r\n![image](https://cloud.githubusercontent.com/assets/790448/9518817/43fbb59a-4cba-11e5-9ab1-51434354227f.png)"}}