From 6d0301d9dd93f4e9fcde02678581426f7090c8e1 Mon Sep 17 00:00:00 2001 From: jmp Date: Sat, 31 Oct 2020 23:28:18 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Specify=20UTF-8=20for=20Javadocs=20?= =?UTF-8?q?too?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 37e6f67a..ee0fae7f 100644 --- a/build.gradle +++ b/build.gradle @@ -86,7 +86,6 @@ subprojects { "CatchAndPrintStackTrace" ) } - options.encoding(StandardCharsets.UTF_8.name()) } repositories { @@ -147,8 +146,10 @@ subprojects { sourceCompatibility = '1.8' - tasks.withType(JavaCompile) { - options.encoding = 'UTF-8' + [JavaCompile, Javadoc].forEach { taskType -> + tasks.withType(taskType) { + options.encoding(StandardCharsets.UTF_8.name()) + } } publishing {