forked from wzgl5533/LearningAndroidOpenCV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
56 lines (51 loc) · 1.63 KB
/
build.gradle.kts
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
//val kotlinVersion by extra("1.4.30")
buildscript {
repositories {
google()
jcenter()
maven(url = "https://jitpack.io")
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath("com.android.tools.build:gradle:4.2.2")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5")
classpath("com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin:1.5.21-1.0.0-beta05")
}
}
allprojects {
repositories {
google()
jcenter()
maven(url = "https://jitpack.io")
mavenCentral()
gradlePluginPortal()
}
}
tasks {
val clean by registering(Delete::class) {
delete(buildDir)
}
}
//tasks.create<Delete>("clean") {
// delete(buildDir)
//}
plugins {
id("io.gitlab.arturbosch.detekt").version("1.16.0")
}
// root build.gradle
detekt {
input = files("app/src/main/kotlin", "app/src/main/java") // 指定需要扫描的源代码文件路径
config = files("config/detekt.yml") // 指定采用的规则集文件
reports { // 指定输出的报告文件类型
html {
enabled = true// Enable/Disable HTML report (default: true)
destination =
file("build/reports/detekt.html") // Path where HTML report will be stored (default:
}
}
}