build.gradle.kts, add javadoc

This commit is contained in:
soloturn 2022-01-07 00:36:03 +01:00
parent 4d61b35821
commit 39331af67e
1 changed files with 9 additions and 1 deletions

View File

@ -22,7 +22,7 @@ java.sourceCompatibility = JavaVersion.VERSION_1_8
java {
withSourcesJar()
// withJavadocJar()
withJavadocJar()
}
sourceSets {
@ -75,3 +75,11 @@ publishing {
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.withType<Javadoc> {
options {
this as StandardJavadocDocletOptions
addStringOption("Xdoclint:none", "-quiet")
addStringOption("Xmaxwarns", "1")
}
}