Last active
December 11, 2018 16:17
-
-
Save AntonKosov/1dd4b56fc9f0a883bf6e9a73e5a0a81e to your computer and use it in GitHub Desktop.
[Gradle] Downloading packages from maven repositories
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
// Run "gradle copyLibs" | |
// https://dl.google.com/dl/android/maven2/index.html | |
apply plugin: 'java' | |
repositories { | |
mavenLocal() | |
mavenCentral() | |
maven { url "https://maven.google.com" } | |
} | |
dependencies { | |
compile 'com.google.android.gms:play-services-base:10.2.1' | |
compile 'com.google.android.gms:play-services-analytics:10.2.1' | |
compile 'com.google.android.gms:play-services-analytics-impl:10.2.1' | |
} | |
task copyLibs(type: Copy) { | |
from configurations.compile | |
into './libs' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment