This repository has been archived by the owner on Oct 3, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
build.gradle
67 lines (55 loc) · 1.69 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* Copyright (c) 2020. Fulton Browne
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.google.android.material:material:1.2.0-alpha06'
}
repositories {
google()
mavenCentral()
jcenter()
}
}
plugins {
// :refreshVersions see https://github.com/jmfayard/buildSrcVersions/issues/77
}
ext {
var = '0.1.0'
var1 = '8.0.0-a07'
}
allprojects {
repositories {
jcenter()
google()
}
}
tasks.create("install") {
group = "custom"
description = "Install the app"
dependsOn(":app:installDebug")
}
tasks.create("test") {
group = "custom"
description = "Run the unit tests"
dependsOn(":app:testDebugUnitTest")
}
tasks.create("clean", Delete) {
delete rootProject.buildDir
}
// ./gradlew --scan $TASKNAME
// see https://dev.to/jmfayard/the-one-gradle-trick-that-supersedes-all-the-others-5bpg