Hi! I have a task that needs to generate outputs based on classpath input, i.e. there is a specific configuration that collects dependencies that should then be put on the classpath of the executing task, so it can reflectively search for annotations. Previously this was a standalone Java program that was executed in Gradle via JavaExec, so the classpath of the execution could simply be set, but I want to inline the implementation to get rid of the external artifact. What would be the easiest way of doing that? Should I keep the code executable via JavaExec and just
somehow have the compile step of the program (and it's generated
Main.class
) being a dependency of the task? Can I extend the classpath for the task somehow? What would you do?