I have projectA, projectB, projectC.
projectA and projectB both depend on projectC. projectA includes projectB as well.
I want to be able to run a task on allprojects when I build projectA or when I build projectB, as projectB needs to be able to be built independently of projectA, so I included “allprojects{ task myTask << {} }” in the build.gradle for projectA and projectB.
I get the following error in projectA:
Cannot add task ‘:projectB:myTask’ as a task with that name already exists.