Thanks for the tip. I might have thought that’d cause a problem with the ordering of the artifact add, but the second approach is working for me in a minimal reproducer project (I’m not sure how I’d get a hold of a PublishArtifact in my context in order to try the first approach):
No plugins or anything obvious stands out to my eyes in that stack trace. I’m guessing this is another case where earlier eager API use is queuing the eager configuration. I’ve locally tried setting the workaround properties for the Kotlin Gradle Plugin issues from above, and pulled the JVM Dependency Conflict and Spring Boot plugins completely out of the project, but no change. I’ll keep removing things to see if any make a difference.
In the stacktrace you do not have the line 72 twice, once for the actual configure lambda start and once further down for the consumable call.
If this would be the case that something else already caused eager realization and thus this is immediately realized and then configured, then you would see the consumable call as start point.
But here you don’t have it, so the realization is triggered after your consumable call.