This message was deleted.
# plugin-development
s
This message was deleted.
n
why would you want to do that? Chances are very high that the sourceSet is used somewhere else, given that it was added before. So removing it again seems very dangerous.
👍 2
e
So I used
sourceSets.all{ .remove(it) }
instead and that seems to work 🤷. That said, I understand the message above but these source sets are added in response to the agp variants and for the modules in question these agp variants are disabled and no tasks generated that use the variants or sourceSets (in theory 😅). Still, I take responsibility for whatever consequence removing the sourcesets bring though I imagine it to be none after looking through the kotlin plugin source 🤔.
v
There’s
.whenObjectRemoved {  }
, so the clients have APIs to track removals and act accordingly.
e
Not trying to track removals. I need to remove because an object is added erroneously