From 817a1cb54a79139022fceb95b6738f4c9dbcdf76 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Wed, 15 Sep 2021 12:32:13 +0200 Subject: [PATCH] build.gradle: Set source file encoding for test classes to UTF-8. --- build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle b/build.gradle index 941b0460..aa45d0db 100644 --- a/build.gradle +++ b/build.gradle @@ -41,6 +41,12 @@ compileJava { options.encoding = 'UTF-8' } +compileTestJava { + sourceCompatibility '1.8' + targetCompatibility '1.8' + options.encoding = 'UTF-8' +} + test { exclude 'de/schildbach/pte/live/**' }