gradle, avoid configuring tasks not run

This commit is contained in:
soloturn 2022-02-13 07:08:34 +01:00
parent 255b5180fe
commit b18175b25c
1 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ tasks.compileJava {
}
}
tasks.withType<Jar> {
tasks.withType<Jar>().configureEach {
manifest {
attributes["Main-Class"] = "net.sourceforge.plantuml.Run"
attributes["Implementation-Version"] = archiveVersion
@ -92,11 +92,11 @@ publishing {
}
}
tasks.withType<JavaCompile> {
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
}
tasks.withType<Javadoc> {
tasks.withType<Javadoc>().configureEach {
options {
this as StandardJavadocDocletOptions
addBooleanOption("Xdoclint:none", true)