google / protobuf-gradle-plugin

Protobuf Plugin for Gradle
Other
1.73k stars 269 forks source link

Protobuf plugin uses Configuration#fileCollection(Dependency...) method #708

Closed jvandort closed 11 months ago

jvandort commented 1 year ago

Gradle plans to deprecate this method in Gradle 9.0 (See gradle/gradle #25124).

There is a single usage of one of these methods here at config.fileCollection(dep). Changing that to config.getFiles() should have the same behavior.

The files(Dependency...) method filters the contents of the configuration to only include files from the provided dependencies and it's transitive dependencies. Since there is only one dependency in the configuration, using this method is unnecessary.