Skip to content

Commit 7a4b992

Browse files
committed
Build: Configure JavaCompile and JavaDoc
1 parent e0304f2 commit 7a4b992

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

build.gradle.kts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,17 @@ plugins {
77
group = "org.gradlex"
88
version = "1.6.3"
99

10-
java {
11-
sourceCompatibility = JavaVersion.VERSION_1_8
12-
targetCompatibility = JavaVersion.VERSION_1_8
10+
tasks.withType<JavaCompile>().configureEach {
11+
options.release = 8
12+
}
13+
14+
tasks.withType<Javadoc>().configureEach {
15+
options {
16+
this as StandardJavadocDocletOptions
17+
encoding = "UTF-8"
18+
addStringOption("Xdoclint:all,-missing", "-quiet")
19+
addStringOption("Xwerror", "-quiet")
20+
}
1321
}
1422

1523
configurations.compileClasspath {

0 commit comments

Comments
 (0)