The question might be more approriate for JetBrains. I think it is not Gradle doing this automatically, but IJ / AS telling Gradle to download the sources and supply them.
d
Dmitriy Voronin
09/01/2023, 1:56 PM
Yes, it looks like it's done via detachedConfigurations.
And I can't see a way to iterate over it and declare excludes for example