my goal is to write a plugin that transforms a DSL into Java source code, which is then compiled with the standard Java source sets using the “compile” task.
The solutions I tried are:
Creating a LanguageTransform, but there is no TransformationFileType for JavaSourceCode, only for JvmByteCode. However, I do not want to duplicate the compile functionality in my plugin.
Manually add the directories with my generated code to the Java source sets, however, the component model is already frozen, because I need to access the components created by my plugin.
Currently I’m thinking about creating a “dummy” binary component, but this just doesn’t feel right.
Any help pointing me towards best practices would be greatly appreciated!