From b18175b25c264eb1d68d2ecd45aff955d5f45bc6 Mon Sep 17 00:00:00 2001 From: soloturn Date: Sun, 13 Feb 2022 07:08:34 +0100 Subject: [PATCH] gradle, avoid configuring tasks not run --- build.gradle.kts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index f66a5a228..c7221cda7 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -65,7 +65,7 @@ tasks.compileJava { } } -tasks.withType { +tasks.withType().configureEach { manifest { attributes["Main-Class"] = "net.sourceforge.plantuml.Run" attributes["Implementation-Version"] = archiveVersion @@ -92,11 +92,11 @@ publishing { } } -tasks.withType { +tasks.withType().configureEach { options.encoding = "UTF-8" } -tasks.withType { +tasks.withType().configureEach { options { this as StandardJavadocDocletOptions addBooleanOption("Xdoclint:none", true)