gradle / gradle

Adaptable, fast automation for all
https://gradle.org
Apache License 2.0
16.68k stars 4.66k forks source link

File collections observed at configuration time should be detected as build configuration inputs #20265

Open bamboo opened 2 years ago

bamboo commented 2 years ago

As a motivational example, the kotlin-dsl plugin uses the file collection API to find all precompiled script plugins at configuration time and currently, the file collection must be explicitly marked as a build configuration input via an internal API: https://github.com/gradle/gradle/blob/049ee57264563a40c3cbcab6dddae58d9fd66b90/subprojects/kotlin-dsl-provider-plugins/src/main/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/DefaultPrecompiledScriptPluginsSupport.kt#L398-L406

Expected Behavior

The internal API call shouldn't be necessary for the file collection to be treated as a build configuration input.

TODO

adammurdoch commented 1 year ago

Split out https://github.com/gradle/gradle/issues/23267

adammurdoch commented 1 year ago

Initial implementation in https://github.com/gradle/gradle/pull/23265

adammurdoch commented 1 year ago

Need to split this up into individual issues.