2019-12-09 10:15:07 +08:00
|
|
|
apply from: "./gradleScript/config.gradle"
|
|
|
|
|
|
|
|
|
|
buildscript {
|
2022-11-16 17:22:16 +08:00
|
|
|
ext.kotlin_version = '1.6.21'
|
2023-03-01 15:30:22 +08:00
|
|
|
ext.component_version = '2.0.0'
|
2019-12-09 10:15:07 +08:00
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
|
google()
|
|
|
|
|
jcenter()
|
2022-11-16 17:42:16 +08:00
|
|
|
maven { url 'https://jitpack.io' }
|
2019-12-09 10:15:07 +08:00
|
|
|
}
|
|
|
|
|
dependencies {
|
2022-11-16 17:22:16 +08:00
|
|
|
classpath 'com.android.tools.build:gradle:4.1.0'
|
2023-03-01 15:30:22 +08:00
|
|
|
// classpath "com.github.DSAppTeam:ComponentCornerstone:$component_version"
|
2019-12-09 10:15:07 +08:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
|
|
|
//调试需要
|
2022-11-16 17:58:54 +08:00
|
|
|
// classpath "com.effective.plugins:component-plugin"
|
2019-12-09 10:15:07 +08:00
|
|
|
|
|
|
|
|
//发布需要
|
2022-11-16 17:42:16 +08:00
|
|
|
// classpath 'com.novoda:bintray-release:0.9.1'
|
2019-12-09 10:15:07 +08:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
|
repositories {
|
|
|
|
|
google()
|
|
|
|
|
jcenter()
|
|
|
|
|
maven { url "http://dl.bintray.com/kotlin/kotlin-eap" }
|
2022-11-16 17:42:16 +08:00
|
|
|
maven { url 'https://jitpack.io' }
|
2019-12-09 10:15:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
//}
|
|
|
|
|
//
|
2023-03-01 15:30:22 +08:00
|
|
|
//apply from: "./gradleScript/component.gradle"
|