-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
62 lines (58 loc) · 2.11 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlin_version = "1.5.31"
booster_version = '4.0.0'
dokka_version = '1.5.30'
fast_startup = '0.0.5'
fast_startup_api = '0.0.5'
fast_startup_transformer = '0.0.1'
}
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 1, 'minutes'
cacheDynamicVersionsFor 1, 'minutes'
}
}
repositories {
maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots" }
maven { url "https://s01.oss.sonatype.org/content/repositories/releases/" }
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.2.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// 添加booster插件
classpath "com.didiglobal.booster:booster-gradle-plugin:$booster_version"
// 添加fast-startup-transformer依赖
classpath "io.github.wizzxu:fast-startup-transformer:$fast_startup_transformer"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
}
}
allprojects {
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 1, 'minutes'
cacheDynamicVersionsFor 1, 'minutes'
}
}
if ("true" == rootProject.isDebugModule) {
configurations.all {
resolutionStrategy.dependencySubstitution {
substitute module("io.github.wizzxu:fast-startup-api") using project(":fast-startup-api")
substitute module("io.github.wizzxu:fast-startup") using project(":fast-startup")
}
}
}
repositories {
google()
mavenCentral()
maven { url "https://s01.oss.sonatype.org/content/repositories/iogithubwizzxu-1018/" }
maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots/" }
jcenter() // Warning: this repository is going to shut down soon
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}