Last active
September 17, 2020 15:21
-
-
Save Redth/2b5c1297db7fd779ba2e288f95e97438 to your computer and use it in GitHub Desktop.
Gradle task for getting dependencies copied locally
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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