-
Notifications
You must be signed in to change notification settings - Fork 115
/
Copy pathbuild.gradle
55 lines (48 loc) · 1.56 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
buildscript {
ext.kotlin_version = '1.4.20'
dependencies {
repositories {
google()
jcenter()
}
classpath "com.android.tools.build:gradle:4.1.1"
//发布到jcenter
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.+'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
classpath 'com.novoda:bintray-release:0.8.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // add plugin
// classpath 'com.novoda:bintray-release:0.4.0'
}
//注释中有汉字,需要这里处理
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
}
repositories {
mavenCentral()
}
/* tasks.withType(Javadoc) {
options {
encoding "UTF-8"
charSet 'UTF-8'
links "http://docs.oracle.com/javase/7/docs/api"
failOnError false
}
}*/
}
//tasks.getByPath(":OXViewLib:releaseAndroidJavadocs").enabled = false
allprojects {
repositories {
google()
jcenter()
//本地仓库地址
// maven { url 'file://E://ASWorkSpace//openxu//OXChart//repository' }
//私有服务器仓库地址
// maven { url 'http://localhost:8081/nexus/content/repositories/releases/' }
//https://bintray.com仓库地址
// maven { url 'https://dl.bintray.com/oxo1/maven' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}