One of our projects uses GWT, and for the most part Gradle builds the project fine. However, we’ve hit a minor hitch with integration in Eclipse.
In order to launch GWT in dev mode, a certain set of properties needs to be checked under project preferences in Eclipse. (Explanation here if you’re curious). These properties are stored in the .settings directory of the Eclipse project, in a special file called com.google.gdt.eclipse.core.prefs.
Is there any way for me to write settings to this file with the current Gradle tools I have? (I.e., without custom-rolling a plugin).
However, Gradle would not let me add this to the eclipse task. It says there is no doLast() method. I also tried adding it in a separate task, and creating a dependency on that task in eclipse, and Gradle tells me there is also no dependsOn() method.
Is the eclipse task not a standard task?
I was able to get it working by adding it to the eclipseProject task instead.
Correct. The ‘eclipse’ task is a lifecycle task (like ‘build’, ‘check’, etc.). It’s sole purpose is to provide a convenient way to run all Eclipse-related tasks (like ‘eclipseProject’ and ‘eclipseClasspath’) together. There is nothing to configure on the ‘eclipse’ task itself.