Configuration.getElements() eagerly triggers artifact transforms #27372
Labels
a:bug
has:reproducer
Indicates the issue has a confirmed reproducer
in:dependency-declarations
variant notation attributes capability substitution
in:scheduler
execution plan, task graph, work lease, project lock
Current Behavior
Using
Configuration.getElements()
to define lazy mapping functions on to-be-produced artifacts should not trigger artifact transforms. Such transforms run too early for locally built artifacts and can produce a wrong result or an error.Expected Behavior
Configuration.getElements()
does not trigger artifact transforms.Context (optional)
No response
Steps to Reproduce
Reproducer project
settings.gradle.kts
lib/build.gradle.kts
app/build.gradle.kts
Run:
gradle clean :app:copyRT
Transform triggers for non existing
lib/build/libs/lib.jar
Gradle version
8.5 (reproducible with other 8.x versions and 7.6)
Build scan URL (optional)
https://scans.gradle.com/s/ktwgohxcen6zq
Your Environment (optional)
No response
The text was updated successfully, but these errors were encountered: