The purpose of this plugin is to transform published Jars. Local Jars do not need to be modified. By default, Artifact Transforms also transform locally created artifacts. I am not sure if this was the case when this plugin was initially created (Gradle 6.x). It feels like this was added to Gradle at a later point (not sure).
So far, the plugin only does something for the consuming projects. This would avoid issues like:
I am not sure though if there is an API for this by now. Setting the attribute (e.g. on runtimeElements and apiElements) should not:
- Influence which attributes are published
- Influence the variant selection step (only the artifact selection/transformation step)