From 33a04d97ab566ac6c8e8a6794e2d432234f3d2e5 Mon Sep 17 00:00:00 2001 From: Jason <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 0a9c12efd..5436e7df2 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 {