Specifically, how to work within the eclipse gradle support when not using gradle to actually build the eclipse project? I’m adding a gradle script to a maven project. Gradle has nothing to do with the project build. I’m writing a gradle script that processes a specific form of data into other formats. The problem is, how to set this up in eclipse so that I can debug the gradle script in eclipse? This is not a “gradle project” in the sense that it’s not using gradle to build it. If I try debug it as a remote java project, it connects, but ignores any breakpoints I have in the script.
Is it even possible to debug a stand-alone gradle script in eclipse?
It isn’t currently possible to debug Gradle build scripts in Eclipse. It is, however, possible to debug task and plugin classes (no matter if they are written in Groovy or Java), provided their sources are made known to the Eclipse project used for debugging.
OK, got the java thing working. Moving it into /buildSrc/main/java from /src/main/java and using the implicit dependencies there worked. It finds the JobApi2 class now and runs it… but still no breakpoint.