build.gradle
1.37 KB
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
apply plugin: 'com.android.library'
//apply plugin: 'com.github.dcendents.android-maven'
//apply plugin: 'com.novoda.bintray-release'//添加JCenter插件
android {
compileSdkVersion compile_sdk_version
buildToolsVersion build_tools_version
defaultConfig {
minSdkVersion min_sdk_version
targetSdkVersion target_sdk_version
versionCode version_code
}
buildTypes {
release {
minifyEnabled isReleaseMinify
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}
allprojects {
tasks.withType(Javadoc) {//兼容中文字符
options{
encoding "UTF-8"
charSet 'UTF-8'
links "http://docs.oracle.com/javase/7/docs/api"
}
}
}
//publish {
// userOrg = 'contrarywind'//bintray.com 用户名/组织名 user/org name
// groupId = 'com.contrarywind'//JCenter上显示的路径 path
// artifactId = 'Android-PickerView'//项目名称 project name
// publishVersion = '4.1.3'//版本号 version code
// desc = 'this is a pickerview for android'//项目描述 description
// website = 'https://github.com/Bigkoo/Android-PickerView' //项目网址链接 link
//}
dependencies {
api fileTree(include: ['*.jar'], dir: 'libs')
api project(path: ':wheelview')
}