forked from RikkaApps/Shizuku
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
121 lines (107 loc) · 3.03 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
google()
mavenLocal()
maven { url 'https://dl.bintray.com/rikkaw/Libraries' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
task install(type: GradleBuild) {
tasks = [
':api-base:install',
':api-21:install',
':api-22:install',
':api-23:install',
':api-24:install',
':api-25:install',
':api-26:install',
':api-27:install',
]
}
task uploadApi(type: GradleBuild) {
tasks = [
':api-21:install',
':api-22:install',
':api-23:install',
':api-24:install',
':api-25:install',
':api-26:install',
':api-27:install',
':api-21:bintrayUpload',
':api-22:bintrayUpload',
':api-23:bintrayUpload',
':api-24:bintrayUpload',
':api-25:bintrayUpload',
':api-26:bintrayUpload',
':api-27:bintrayUpload',
]
}
task uploadApiBase(type: GradleBuild) {
tasks = [
':api-base:install',
':api-base:bintrayUpload',
]
}
task generate(type: GradleBuild) {
tasks = [
':server-base:build',
':generator:generate',
':server-21:dex',
':server-22:dex',
':server-23:dex',
':server-24:dex',
':server-25:dex',
':server-26:dex',
':server-27:dex',
]
}
task generateApi27(type: GradleBuild) {
tasks = [
':server-base:build',
':generator:generateApi27',
':server-27:dex',
]
}
task dex(type: GradleBuild) {
tasks = [
':server-base:build',
':server-21:dex',
':server-22:dex',
':server-23:dex',
':server-24:dex',
':server-25:dex',
':server-26:dex',
':server-27:dex',
]
}
def gitCommitId = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()
def gitCommitCount = Integer.parseInt('git rev-list --count HEAD'.execute([], project.rootDir).text.trim())
def baseVersionName = '2.1.3'
ext {
supportLibraryVersion = '27.1.1'
preferenceLibraryVersion = '2.2.3'
minSdkVersion = 21
targetSdkVersion = 27
buildToolsVersion = "27.0.3"
versionCode = gitCommitCount
versionName = "${baseVersionName}.r${gitCommitCount}.${gitCommitId}"
apiBaseLibraryVersion = '10'
apiLibraryVersion = '5'
}