How to determine set of inputs to build configuration (not to tasks themselves)

Hi folks! Gradle’s dependency tracking for task inputs and outputs is great; it’s really quite straight-forward to walk the task graph and determine the set of task inputs (including intermediate inputs in the build directory).

I would like to do the same thing for the inputs to build configuration. I’m thinking of .gradle scripts, buildSrc, plugin sources, dependency JARs, etc. Can I get that information from Gradle, perhaps immediately after configuration? These might be the set of things that would invalidate the configuration cache completely (but I see no way to interrogate the configuration cache contents at this moment).

Any guidance appreciated. Thanks!
Nick