]> source.dussan.org Git - sonarqube.git/commitdiff
Force utf-8 encoding for tests
authorAntoine Vinot <antoine.vinot@sonarsource.com>
Fri, 13 May 2022 06:56:02 +0000 (08:56 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 20 May 2022 20:02:46 +0000 (20:02 +0000)
build.gradle

index 59bd075924c7740a5bd2417e9dc82af3ca24d434..ea393533d465b28e9e5a27465f93c52018e3ccef 100644 (file)
@@ -123,6 +123,9 @@ subprojects {
   // do not deploy to Artifactory by default
   artifactoryPublish.skip = true
 
+  compileJava.options.encoding = "UTF-8"
+  compileTestJava.options.encoding = "UTF-8"
+
   def testFixtureSrc = 'src/testFixtures'
   if (file(testFixtureSrc).exists()) {
     apply plugin: 'java-test-fixtures'