-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
57 lines (50 loc) · 1.46 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
import com.vanniktech.maven.publish.MavenPublishBaseExtension
import com.vanniktech.maven.publish.SonatypeHost
plugins {
alias(libs.plugins.detekt)
alias(libs.plugins.android.library) apply false
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.kotlin) apply false
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.build.config) apply false
alias(libs.plugins.maven.publish) apply false
}
dependencies {
detektPlugins(libs.detekt.formatting)
}
allprojects {
repositories {
google()
mavenCentral()
}
}
detekt {
description = "Runs detekt for all modules"
autoCorrect = true
config.setFrom(files("${rootProject.rootDir}/detekt.yml"))
source.setFrom(files(rootProject.rootDir))
}
tasks.detekt.configure {
include("**/*.kt")
include("**/*.kts")
exclude("**/resources/**")
exclude("**/build/**")
reports {
xml.required.set(false)
html.required.set(false)
txt.required.set(false)
sarif.required.set(false)
md.required.set(true)
}
}
tasks.register("check") {
// register check task for the root project so our detekt task will run on `gradlew check`
}
configure(subprojects) {
pluginManager.withPlugin("com.vanniktech.maven.publish") {
extensions.configure<MavenPublishBaseExtension> {
publishToMavenCentral(SonatypeHost.S01)
signAllPublications()
}
}
}