forked from mCyp/Orient-Ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
72 lines (56 loc) · 2.17 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
//bintray 插件
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext{
// 黄油刀版本
butterKniferVersion = '10.2.1'
// glide版本
glideVersion = '3.7.0'
glideTransforemVersion = '4.0.1';
//bintray 网站上你创建的仓库的名字(必配项)
bintrayRepo = 'Maven'
//在这个仓库下的 package name(必配项)
bintrayName = 'Orient-Ui'
//以上两项均只是指向 bintray 网站上你的仓库和仓库下的package
//publishedGroupId:artifact:libraryVersion 构成你开源库的唯一路径
//例如:com.dasu.tv:tv:0.0.1,在build.gradle里就可以根据这个路径来compile依赖库了
//以下三项均是必配项
publishedGroupId = 'com.orient'
artifact = 'Orient-Ui'
libraryVersion = '2.1.4'
//开源库对应的 github 地址,不知道可不可以不配,应该也是必配
gitUrl = 'https://github.com/mCyp/Orient-Ui.git'
//以下三项只是对开源库的描述(应该不是必配项吧,没尝试过)
libraryName = 'Orient-Ui'
libraryDescription = 'A Android Ui Library'
siteUrl = 'https://github.com/mCyp/Orient-Ui'
//开发者信息,也是必配的吧
developerId = 'JieWang'
developerName = 'JieWang'
developerEmail = '[email protected]'
//这部分可以不用改,我也不大懂这些开源协议,但应该都一样
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}