-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.gradle
50 lines (44 loc) · 1.36 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
apply from: "./gradleScript/config.gradle"
buildscript {
ext.kotlin_version = '1.6.21'
ext.component_version = '2.0.0'
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
// classpath "com.github.DSAppTeam:ComponentCornerstone:$component_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
//调试需要
// classpath "com.effective.plugins:component-plugin"
//发布需要
// classpath 'com.novoda:bintray-release:0.9.1'
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "http://dl.bintray.com/kotlin/kotlin-eap" }
maven { url 'https://jitpack.io' }
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
options.addStringOption('charSet', 'UTF-8')
}
}
//
//task clean(type: Delete) {
// delete rootProject.buildDir
//}
//
//apply from: "./gradleScript/component.gradle"