From b2cf41496d45acc15405748cf346ef029ab86fa3 Mon Sep 17 00:00:00 2001 From: TiA4f8R <74829229+TiA4f8R@users.noreply.github.com> Date: Tue, 23 Feb 2021 14:38:20 +0100 Subject: [PATCH] Set extractor encoding to UTF-8 When compiling the extractor on Windows, you get more than 100 errors with the message error: unmappable character for encoding Cp1252, especially in timeago-parser tasks. This commit fixes it by setting the encoding for all compileJava and compileTestJava tasks to UTF-8. --- build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.gradle b/build.gradle index 37c720fb..f78f3b29 100644 --- a/build.gradle +++ b/build.gradle @@ -2,6 +2,9 @@ allprojects { apply plugin: 'java-library' apply plugin: 'maven' + compileJava.options.encoding = 'UTF-8' + compileTestJava.options.encoding = 'UTF-8' + sourceCompatibility = 1.8 targetCompatibility = 1.8