-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle.kts
68 lines (59 loc) · 1.68 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
61
62
63
64
65
66
67
68
import io.gitlab.arturbosch.detekt.*
plugins {
id("sign")
kotlin("plugin.compose")
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
id("io.gitlab.arturbosch.detekt") version "1.23.6"
id("app.cash.licensee") version "1.11.0"
}
dependencies {
api(libs.uuid)
compileOnly(libs.compose.runtime)
api(libs.compose.html.core)
api(npm("bootstrap", "5.2.3"))
api(npm("@popperjs/core", "2.11.6"))
testImplementation(kotlin("test"))
testImplementation(libs.compose.runtime)
testImplementation(libs.compose.html.testUtils)
testImplementation(libs.coroutines.test)
}
licensee {
allow("Apache-2.0")
}
nexusPublishing {
this.repositories {
sonatype {
username.set(providers.gradleProperty("SONARTYPE_APIKEY"))
password.set(providers.gradleProperty("SONARTYPE_APITOKEN"))
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}
detekt {
source.from(files(rootProject.rootDir))
parallel = true
autoCorrect = true
buildUponDefaultConfig = true
}
dependencies {
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:${detekt.toolVersion}")
}
tasks {
fun SourceTask.config() {
include("**/*.kt")
exclude("**/*.kts")
exclude("**/resources/**")
exclude("**/generated/**")
exclude("**/build/**")
}
withType<DetektCreateBaselineTask>().configureEach {
config()
}
withType<Detekt>().configureEach {
config()
reports {
sarif.required.set(true)
}
}
}