I am building a project and have the following issue: I have two subprojects which are very similar, they share all the same tasks task1, task2, task3; only one task is a little different, taskDiff. They both have the task, and it does very similar things, but is a little different in both subprojects
My idea was to create a group which contains both subprojects, and task1, task2, task3 are defined in that group. That way, both subprojects can be called with those tasks.
The problem is, taskDiff needs to be defined in the subprojects. But the tasks of the group depend on that task. When I do a
I get an error of course, because gradle doesn’t know taskDiff at that level.
Can you give me some hint on how to proceed here?
I hope I could make myself clear here, I am quite new to gradle.
Thanks a lot!