Skip to content

Instantly share code, notes, and snippets.

@Redth
Last active September 17, 2020 15:21
Show Gist options
  • Save Redth/2b5c1297db7fd779ba2e288f95e97438 to your computer and use it in GitHub Desktop.
Save Redth/2b5c1297db7fd779ba2e288f95e97438 to your computer and use it in GitHub Desktop.
Gradle task for getting dependencies copied locally
// Add this to your module's build.gradle
// then run:
// gradlew :module-name:copyImpl
// The deps will be in the /module-name/downloadedlibs/* dir
configurations.implementation.setCanBeResolved(true)
configurations.api.setCanBeResolved(true)
task copyImpl(type: Copy) {
from configurations.implementation
into "downloadedlibs"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment