I used to copy \'compile\' dependencies to a specific folder using this simple gradle task :
task copyLibs(type: Copy) {
from configurations.compile
Another suggestion.
I created my custom config and then used it as configurations.customConfig
:
configurations {
customConfig.extendsFrom implementation
}
The copy task must be correspondingly edited:
task copyLibs(type: Copy) {
from configurations.customConfig
into "$project.rootDir/reports/libs/"
}