How to obtain resolved artifact metadata during transformation?

Using Gradle capabilities for JPMS (inferred module path, transforms to augment modules); presently the transformation capabilities are based on JAR name (from the samples: https://docs.gradle.org/current/samples/sample_java_modules_with_transform.html).

Would like to extend transformation be based on coordinates (group:module:version) - unclear how to get the resolved artifact metadata during transformation.

Some of the use cases to satisfy:

  1. Make transformation less-fragile to version / file changes;
  2. Deal with dependencies that have large numbers of components w/o modules (either explicit or automatic-module-name’d), where . makes an appropriate module identifier.

Have tried using an artifact view but that seems to either be too early, or too late (when done in afterEvaluate).