I'm migrating a project to Gradle.
I have some local deps which are imported via compile fileTree(dir: "libs/$it", include: '*.jar')
However compile
is deprecated.
But if I change it to implementation
then my task will copy nothing (except the files which are decleared with runtime
):
task copyToLib(type: Copy) {
from configurations.runtime
into "$buildDir/output/lib"
}
changing configurations.runtime
to .compile
or implementation
doesn't help
What's going on?