{"action":"created","issue":{"url":"https://api.github.com/repos/gradle/gradle/issues/480","labels_url":"https://api.github.com/repos/gradle/gradle/issues/480/labels{/name}","comments_url":"https://api.github.com/repos/gradle/gradle/issues/480/comments","events_url":"https://api.github.com/repos/gradle/gradle/issues/480/events","html_url":"https://github.com/gradle/gradle/pull/480","id":94703798,"number":480,"title":"Fix eclipse plugin bug which remove javabuilder from .project","user":{"login":"kui","id":29692,"avatar_url":"https://avatars.githubusercontent.com/u/29692?v=3","gravatar_id":"","url":"https://api.github.com/users/kui","html_url":"https://github.com/kui","followers_url":"https://api.github.com/users/kui/followers","following_url":"https://api.github.com/users/kui/following{/other_user}","gists_url":"https://api.github.com/users/kui/gists{/gist_id}","starred_url":"https://api.github.com/users/kui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kui/subscriptions","organizations_url":"https://api.github.com/users/kui/orgs","repos_url":"https://api.github.com/users/kui/repos","events_url":"https://api.github.com/users/kui/events{/privacy}","received_events_url":"https://api.github.com/users/kui/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"bigdaz","id":179734,"avatar_url":"https://avatars.githubusercontent.com/u/179734?v=3","gravatar_id":"","url":"https://api.github.com/users/bigdaz","html_url":"https://github.com/bigdaz","followers_url":"https://api.github.com/users/bigdaz/followers","following_url":"https://api.github.com/users/bigdaz/following{/other_user}","gists_url":"https://api.github.com/users/bigdaz/gists{/gist_id}","starred_url":"https://api.github.com/users/bigdaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigdaz/subscriptions","organizations_url":"https://api.github.com/users/bigdaz/orgs","repos_url":"https://api.github.com/users/bigdaz/repos","events_url":"https://api.github.com/users/bigdaz/events{/privacy}","received_events_url":"https://api.github.com/users/bigdaz/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-07-13T11:58:14Z","updated_at":"2015-08-11T13:28:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gradle/gradle/pulls/480","html_url":"https://github.com/gradle/gradle/pull/480","diff_url":"https://github.com/gradle/gradle/pull/480.diff","patch_url":"https://github.com/gradle/gradle/pull/480.patch"},"body":"The current eclipse plugin replace javabuilder with scalabuilder if scala-plugin is enabled.\r\n\r\nThis patch fix eclipse plugin not to replace but to add scalabuilder.\r\n\r\nSimple examples for reproduce\r\n------------------------------\r\n\r\nWithout scala plugin:\r\n\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~bash\r\n$ cat build.gradle\r\n// apply plugin: \"scala\"\r\napply plugin: \"java\"\r\napply plugin: \"eclipse\"\r\n$ ../gradle-latest/bin/gradle-source-build cleanEclipse eclipse\r\n$ grep javabuilder .project\r\n                        <name>org.eclipse.jdt.core.javabuilder</name>\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\nWith scala plugin (current version):\r\n\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~bash\r\n$ cat build.gradle\r\napply plugin: \"scala\"\r\napply plugin: \"java\"\r\napply plugin: \"eclipse\"\r\n$ ../gradle-latest/bin/gradle-source-build cleanEclipse eclipse\r\n$ grep javabuilder .project\r\n$ echo $?\r\n1\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\nWith scala plugin (patched version):\r\n\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~bash\r\n$ cat build.gradle\r\napply plugin: \"scala\"\r\napply plugin: \"java\"\r\napply plugin: \"eclipse\"\r\n$ ../gradle-latest/bin/gradle-source-build cleanEclipse eclipse\r\n$ grep javabuilder .project\r\n                        <name>org.eclipse.jdt.core.javabuilder</name>\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"},"comment":{"url":"https://api.github.com/repos/gradle/gradle/issues/comments/129872983","html_url":"https://github.com/gradle/gradle/pull/480#issuecomment-129872983","issue_url":"https://api.github.com/repos/gradle/gradle/issues/480","id":129872983,"user":{"login":"kemuri-9","id":3010610,"avatar_url":"https://avatars.githubusercontent.com/u/3010610?v=3","gravatar_id":"","url":"https://api.github.com/users/kemuri-9","html_url":"https://github.com/kemuri-9","followers_url":"https://api.github.com/users/kemuri-9/followers","following_url":"https://api.github.com/users/kemuri-9/following{/other_user}","gists_url":"https://api.github.com/users/kemuri-9/gists{/gist_id}","starred_url":"https://api.github.com/users/kemuri-9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kemuri-9/subscriptions","organizations_url":"https://api.github.com/users/kemuri-9/orgs","repos_url":"https://api.github.com/users/kemuri-9/repos","events_url":"https://api.github.com/users/kemuri-9/events{/privacy}","received_events_url":"https://api.github.com/users/kemuri-9/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T13:28:16Z","updated_at":"2015-08-11T13:28:16Z","body":"Question:\r\nWhen I was on a client project about 3 years ago which had a combination of traditional Java, Scala, and Groovy, I manually did something like this on the project then to try and get things working better in eclipse.\r\nI believe at the time, Eclipse was the Indigo version.\r\nHowever, at that time, I found that the Java and Scala builders did not \"get along\" at that time, almost always causing mass compilation failures which seemed to be a by product of one builder clobbering the other's output, with usually the javabuilder \"winning\"\r\nHas the behavior in the builders changed to where they \"get along\" better now?\r\nIn this particular case of the client I was working with, Scala was eventually dropped to where the problem resolved itself in that fashion."}}