Repo to reproduce gradle/gradle#17201
- Clone the repo
- Run
./gradlew copyDependencies
and it works well - Modify
app/build.gradle
, change thecopyDependencies
task as follows:task copyDependencies(type: Copy) { from configurations.runtimeClasspath.files // <--- here is the change into "$buildDir/dependencies" }
- It will throw an error when running the Gradle tasks.
It works well with Gradle 7 and Gradle 8, but fails on Gradle 6.9.3