Using a custom task in buildSrc if the task itself is located in buildSrc

Hi group,

I have dropped a custom task source file in the buildSrc sub project of a multi-project build. I am now able to import and use that task class in my subprojects’ build.gradle files.

I am now encountering myself in the situation that I want to use the same task from within the buildSrc/build.gradle file. Now the buildSrc build breaks when I add the import statement in buildSrc/build.gradle since it cannot resolve the corresponding class file - is there any way to resolve this self-dependency ?