My plugin defines a JavaExec tasks. It adds the “runtimeClasspath” of the main source set, and the “compileClasspath” and “.getOutput()” of a source set the plugin creates in the project.
I also want src/main/groovy from the actual plugin code itself to be added to the classpath. Since the plugin is a “buildscript” dependency, it is not present in the runtimeClasspath of the main source set.
How do I add the plugin itself to the classpath of my JavaExec task?
Here’s my code so far. https://gist.github.com/augustl/c0fdf2c7ce9e388c22c6