-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
60 lines (51 loc) · 2.06 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
57
58
59
60
buildscript {
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30")
classpath("org.jetbrains.compose:compose-gradle-plugin:1.0.0-alpha4-build328")
classpath("com.android.tools.build:gradle:4.2.0")
}
}
plugins {
id("io.gitlab.arturbosch.detekt") version "1.18.0"
id("org.jlleitschuh.gradle.ktlint") version "10.1.0"
}
allprojects {
group = "org.chiachat"
version = "1.0"
repositories {
google()
mavenCentral()
maven("https://jitpack.io")
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
subprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint") // Version should be inherited from parent
apply(plugin = "io.gitlab.arturbosch.detekt")
dependencies {
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.18.0")
}
// configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
// debug.set(true)
// }
detekt {
buildUponDefaultConfig = true // preconfigure defaults
allRules = true // activate all available (even unstable) rules.
// point to your custom config defining rules to run, overwriting default behavior
config = files("../config/detekt.yml")
// a way of suppressing issues before introducing detekt
baseline = file("../config/baseline.xml")
reports {
html.enabled = true // observe findings in your browser with structure and code snippets
xml.enabled = true // checkstyle like format mainly for integrations like Jenkins
txt.enabled = true
// similar to the console output, contains issue signature to manually edit baseline files
sarif.enabled = true
// standardized SARIF format (https://sarifweb.azurewebsites.net/) to support integrations with Github Code Scanning
}
}
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
// Target version of the generated JVM bytecode. It is used for type resolution.
jvmTarget = "1.8"
}
}