-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle
33 lines (29 loc) · 1 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
maven { url 'https://maven.google.com' }
jcenter()
}
dependencies {
File localFile = project.rootProject.file('local.properties')
Properties extProperties = new Properties()
if (localFile.exists()) {
extProperties.load(localFile.newDataInputStream())
}
def androidGradlePluginVersion = "3.0.1"
if (extProperties.containsKey('gradleVersion')) {
androidGradlePluginVersion = extProperties.get("gradleVersion") as String
}
project.logger.error "root build.gradle androidGradlePluginVersion ${androidGradlePluginVersion}"
classpath "com.android.tools.build:gradle:${androidGradlePluginVersion}"
}
}
allprojects {
repositories {
maven { url 'https://maven.google.com' }
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}