forked from zaproxy/zaproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
48 lines (41 loc) · 1.21 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
import net.ltgt.gradle.errorprone.errorprone
plugins {
id("com.diffplug.spotless")
id("org.sonarqube") version "5.0.0.4638"
id("com.github.ben-manes.versions") version "0.51.0"
id("net.ltgt.errorprone") version "4.0.0"
}
apply(from = "$rootDir/gradle/ci.gradle.kts")
subprojects {
apply(plugin = "com.diffplug.spotless")
apply(plugin = "org.zaproxy.common")
apply(plugin = "net.ltgt.errorprone")
spotless {
kotlinGradle {
ktlint()
}
}
project.plugins.withType(JavaPlugin::class) {
dependencies {
"errorprone"("com.google.errorprone:error_prone_core:2.28.0")
}
}
tasks.withType<JavaCompile>().configureEach {
options.errorprone {
disableAllChecks.set(true)
error(
"MissingOverride",
"WildcardImport",
)
}
}
}
sonarqube {
properties {
property("sonar.projectKey", "zaproxy_zaproxy")
property("sonar.organization", "zaproxy")
property("sonar.host.url", "https://sonarcloud.io")
// Workaround https://sonarsource.atlassian.net/browse/SONARGRADL-126
property("sonar.exclusions", "**/*.gradle.kts")
}
}