I’ve written a bunch of custom plugins and also a couple of types (in this example I’ll use my custom XJC type - generating java sources from an XSD schema). It seems that once the jar file containing my custom plugins/jars is wired into the gradle distribution, that users can create tasks of my custom type regardless of which plugins are applied. In the case of java code generation, this really only makes sense if the java plugin (or better yet my own custom plugin which internally applies the java plugin and does some other stuff). XJC code generation really should require the java plugin to have been applied, since part of the custom type’s job is to modify the main sourceSet and add the xjc output directory to the sourceSet, and then make sure that the compileJava task depends on the instance of each task of the XJC type (so that the sources get generated BEFORE compileJava runs).
Anyone have any info on this?