-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
build.gradle.kts
48 lines (38 loc) · 1.06 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("net.ltgt.errorprone") version "4.0.0"
id("org.zaproxy.common")
}
subprojects {
apply(plugin = "java-library")
apply(plugin = "com.diffplug.spotless")
apply(plugin = "net.ltgt.errorprone")
apply(plugin = "org.zaproxy.common")
group = "org.zaproxy"
version = "1.15.0-SNAPSHOT"
extra["versionBC"] = "1.14.0"
java {
val javaVersion = JavaVersion.VERSION_11
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
spotless {
kotlin {
ktlint()
}
kotlinGradle {
ktlint()
}
}
dependencies {
"errorprone"("com.google.errorprone:error_prone_core:2.28.0")
}
tasks.withType<JavaCompile> {
options.errorprone {
disable("EmptyBlockTag", "InlineMeSuggester")
}
}
}
fun Project.java(configure: JavaPluginExtension.() -> Unit): Unit =
(this as ExtensionAware).extensions.configure("java", configure)