From 039bdd567e98a85d40c37dbdf4b466a414f3cdfc Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Thu, 11 Jan 2024 13:31:16 -0500 Subject: [PATCH] Fix updateCopyright Gradle task to read files in UTF-8 This would avoid non-ASCII symbols breakage on those operating systems where UTF-8 is not default --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 0ae032c6da..5a8819b372 100644 --- a/build.gradle +++ b/build.gradle @@ -272,7 +272,7 @@ configure(javaProjects) { subproject -> def beginningYear = matcher[0][1] if (now != beginningYear && now != matcher[0][2]) { def years = "$beginningYear-$now" - def sourceCode = file.text + def sourceCode = file.getText('UTF-8') sourceCode = sourceCode.replaceFirst(/20\d\d(-20\d\d)?/, years) file.text = sourceCode println "Copyright updated for file: $file"