-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
build.gradle.kts
41 lines (36 loc) · 947 Bytes
/
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
plugins {
alias(libs.plugins.cloud.buildLogic.rootProject.publishing)
alias(libs.plugins.cloud.buildLogic.rootProject.spotless)
}
repositories {
mavenCentral()
}
spotlessPredeclare {
kotlin { ktlint(libs.versions.ktlint.get()) }
kotlinGradle { ktlint(libs.versions.ktlint.get()) }
}
subprojects {
if ("nms" in name) {
tasks {
whenTaskAdded {
if ("checkstyle" in name) {
enabled = false
}
}
}
}
afterEvaluate {
tasks.withType<JavaCompile>().configureEach {
options.compilerArgs.remove("-Werror")
}
tasks.findByName("spotlessConfigsCheck")?.enabled = false
}
}
tasks {
spotlessCheck {
dependsOn(gradle.includedBuild("build-logic").task(":spotlessCheck") )
}
spotlessApply {
dependsOn(gradle.includedBuild("build-logic").task(":spotlessApply"))
}
}