From 88cd18de34f7ae457d3cd67dad875048fc1cc77d Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Mon, 21 Jun 2021 08:27:46 -0700 Subject: [PATCH] Set UTF-8 encoding for Javadoc and ProcessResources (#5937) --- build.gradle.kts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 0a9c12efdb..5436e7df27 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -14,10 +14,16 @@ subprojects { } } - tasks.withType().configureEach { - options.encoding = "UTF-8" + tasks.withType { + options.encoding = Charsets.UTF_8.name() options.release.set(16) } + tasks.withType { + options.encoding = Charsets.UTF_8.name() + } + tasks.withType { + filteringCharset = Charsets.UTF_8.name() + } configure { repositories {