45 lines
1.1 KiB
Groovy
45 lines
1.1 KiB
Groovy
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:2.3.2'
|
|
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
|
|
}
|
|
|
|
ext {
|
|
versions = [supportLib: "24.2.0",
|
|
gpsLib : "9.4.0",
|
|
sdk : [compile: 24, buildTools: "24.0.1", min: 9, target: 24]]
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
mavenCentral()
|
|
def androidHome = System.getenv("ANDROID_HOME")
|
|
maven {
|
|
url "$androidHome/extras/android/m2repository/"
|
|
}
|
|
maven {
|
|
url "$androidHome/extras/google/m2repository/"
|
|
}
|
|
|
|
def userHome = System.getenv("HOME")
|
|
maven {
|
|
url "$userHome/.m2/repository/"
|
|
}
|
|
|
|
flatDir {
|
|
dirs 'misc/libs'
|
|
}
|
|
|
|
if (!project.hasProperty("ossrhUsername")) {
|
|
ext.ossrhUsername = "no-username"
|
|
}
|
|
|
|
if (!project.hasProperty("ossrhPassword")) {
|
|
ext.ossrhPassword = "no-password"
|
|
}
|
|
}
|
|
} |