-
Notifications
You must be signed in to change notification settings - Fork 226
/
Copy pathbuild.gradle
60 lines (57 loc) · 1.61 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
// 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.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
classpath 'me.tatarka:gradle-retrolambda:3.2.0'
}
}
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
google()
}
}
ext {
android = [
compileSdkVersion : 27,
buildToolsVersion : "27.0.3",
minSdkVersion : 8,
targetSdkVersion : 22,
versionCode : 45,
versionName : "1.7.5",
releaseVersion: "1.7.5"
]
file = [
versionCode : 6,
versionName : "1.3.1",
releaseVersion: "1.3.1"
]
exportApi = [
versionCode : 10,
versionName : "1.1.8",
releaseVersion: "1.1.8"
]
}
// 发布 LogUtil 线上版本
task publishLogRelease(dependsOn: [':library:bintrayUpload', ':logutils-no-op:bintrayUpload']) {
group 'publishing'
description 'publish log release version'
doLast {
println "publishRelease finish"
}
}
// 发布完整线上版本,包含 log2File
task publishFullRelease(dependsOn: ['publishLogRelease', ':log2file:bintrayUpload']) {
group 'publishing'
description 'publish full release version (include log2File)'
doLast {
println "publishFullRelease finish"
}
}