-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
73 lines (57 loc) · 2.22 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
63
64
65
66
67
68
69
70
71
72
73
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
apply from: "config_repo.gradle"
repositories rootProject.ext.MAVEN_REPOSITORIES
dependencies {
classpath 'com.android.tools.build:gradle:7.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${rootProject.ext.kotlin_version}"
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.5.0'
classpath 'com.github.kezong:fat-aar:1.3.6'
classpath "com.tencent.qqmusic.sdkmethodmonitor:sdkmethodmonitor:${rootProject.ext.sdkmethodmonitor}"
if (isLiteSDK.toBoolean()) {
classpath "com.tencent.qqmusic.openapi:openapi-sdk-gradle-plugin:${rootProject.ext.sdk_version}"
}
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
configurations.all {
resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds'
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
}
// 这个代码是否起作用存疑
configurations.all {
resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds'
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
apply plugin: 'org.jetbrains.dokka'
allprojects {
repositories rootProject.ext.MAVEN_REPOSITORIES
configurations.all {
resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds'
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
apply plugin: 'project-report'
}
task clean(type: Delete) {
delete rootProject.buildDir
}
import org.apache.tools.ant.taskdefs.condition.Os
task installGitHook(type: Copy) {
def suffix = "macos"
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
suffix = "windows"
}
from new File(rootProject.rootDir, "scripts/pre-commit-$suffix")
into { new File(rootProject.rootDir, '.git/hooks') }
rename("pre-commit-$suffix", 'pre-commit')
from new File(rootProject.rootDir, "scripts/pre-push-$suffix")
into { new File(rootProject.rootDir, '.git/hooks') }
rename("pre-push-$suffix", 'pre-push')
fileMode 0775
}
try {
apply plugin:'git-hook'
} catch (ignored) {
println("settings include failed. ignore:${ignored}")
}