From 70b4fb78e646c8f54c76c013b48ff63fdf9c24d2 Mon Sep 17 00:00:00 2001 From: Peter Gyorok Date: Tue, 15 Mar 2022 12:05:17 +0000 Subject: [PATCH 1/2] change encoding settings to UTF-8 --- build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.gradle b/build.gradle index 524224f2..06b26d30 100644 --- a/build.gradle +++ b/build.gradle @@ -13,6 +13,9 @@ compileJava { targetCompatibility = JavaVersion.VERSION_1_8 } +compileJava.options.encoding = "UTF-8" +compileTestJava.options.encoding = "UTF-8" + repositories { mavenCentral() } From 88839c99eae47e588d0bb495d81a9a4454d2ab1b Mon Sep 17 00:00:00 2001 From: Peter Gyorok Date: Tue, 15 Mar 2022 12:13:05 +0000 Subject: [PATCH 2/2] allow overriding of HOME to avoid test errors --- build.gradle | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 06b26d30..7c199df9 100644 --- a/build.gradle +++ b/build.gradle @@ -13,9 +13,6 @@ compileJava { targetCompatibility = JavaVersion.VERSION_1_8 } -compileJava.options.encoding = "UTF-8" -compileTestJava.options.encoding = "UTF-8" - repositories { mavenCentral() } @@ -60,6 +57,7 @@ configurations { test { useJUnitPlatform() + systemProperty "user.home", System.getProperty("user.home") } task integrationTest(type: Test) { @@ -71,6 +69,10 @@ task integrationTest(type: Test) { systemProperty "user.home", System.getProperty("user.home") } +compileJava.options.encoding = "UTF-8" +compileTestJava.options.encoding = "UTF-8" +compileIntTestJava.options.encoding = "UTF-8" + dependencies { txtmark group: 'com.github.rjeschke', name: 'txtmark', version: '0.13'