Making classes from a custom plugin available in the workspace classpath

Hello, I got the following problem.

I am have a plugin with the task “gradle startServer”. This task will startup the server fine inside gradle. What I wanna do is make a class available in the workspace classpath. So that IDE’s like eclipse and idea can simply run that class. The class should than simply startup my gradle task inside the IDE. So things like debugging is possible.

Its basicly the same thing does. Only problem is that I fail to figure out how this plugin does that.


Nvm I already founded it. They generate a class folder in gradle cache and set the folder as a runtime dependency.