Skip to content

Instantly share code, notes, and snippets.

@nocoo
Created August 23, 2017 00:56
Show Gist options
  • Save nocoo/aed76b5262d49a2f7de340505473bf34 to your computer and use it in GitHub Desktop.
Save nocoo/aed76b5262d49a2f7de340505473bf34 to your computer and use it in GitHub Desktop.
Gradle to extract all dependencies as AAR
# In project build.gradle:
task copyDeps(type: Copy) {
from (configurations.compile) {
include "*.jar","*.aar"
include ".so", ".dll"
}
into rootProject.rootDir.getAbsolutePath()+"/lib"
}
# In command line run: ./gradlew --refresh-dependencies --gradle-user-home "./lib"
# Find your AAR in "lib" folder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment