Rely on FileCollection.getElements() (available in Gradle 5.6+) to ensure no files are accessed eagerly during configuration. This also ensures configuration cache key does not depend on them.
Fixes issue #711.
Test: Added "testProjectDependent proto extraction with configuration cache" with Gradle 8.1
Rely on FileCollection.getElements() (available in Gradle 5.6+) to ensure no files are accessed eagerly during configuration. This also ensures configuration cache key does not depend on them.
Fixes issue #711.
Test: Added "testProjectDependent proto extraction with configuration cache" with Gradle 8.1
backport of https://github.com/google/protobuf-gradle-plugin/pull/713