From 72d749b0b6f7108af3e2c67c03b2feb6c44ad478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Colin=20de=20Verdi=C3=A8re?= Date: Fri, 5 Jan 2024 08:17:54 +0100 Subject: [PATCH] Fix error on windows when building MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Default charset on windows is Cp1252. LogResultsWriter contains UTF-8 characters. Ex: ✅ Force charset UTF-8 for javadoc --- build.gradle.kts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 2f50622..677880a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -92,6 +92,10 @@ configure(subprojects) { options.encoding = "UTF-8" } + tasks.javadoc { + options.encoding = "UTF-8" + } + tasks.compileTestJava { options.encoding = "UTF-8" options.compilerArgs.add("-parameters") @@ -113,4 +117,3 @@ configure(subprojects) { repositories { mavenCentral() } -