forked from zaproxy/zap-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
47 lines (39 loc) · 1.16 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
plugins {
id("com.diffplug.gradle.spotless")
id("com.github.ben-manes.versions") version "0.27.0"
id("org.sonarqube") version "3.0"
}
apply(from = "$rootDir/gradle/travis-ci.gradle.kts")
apply(from = "$rootDir/gradle/lgtm.gradle.kts")
allprojects {
apply(plugin = "com.diffplug.gradle.spotless")
apply(plugin = "com.github.ben-manes.versions")
repositories {
mavenCentral()
}
spotless {
kotlinGradle {
ktlint()
}
project.plugins.withType(JavaPlugin::class) {
java {
licenseHeaderFile("$rootDir/gradle/spotless/license.java")
googleJavaFormatAosp(project)
}
}
}
tasks.withType<JavaCompile>().configureEach {
options.encoding = "utf-8"
options.compilerArgs = listOf("-Xlint:all", "-Xlint:-path", "-Xlint:-options", "-Werror")
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
}
sonarqube {
properties {
property("sonar.projectKey", "zaproxy_zap-extensions")
property("sonar.organization", "zaproxy")
property("sonar.host.url", "https://sonarcloud.io")
}
}