build.gradle: Specify source encodings.

This commit is contained in:
Andreas Schildbach
2018-10-31 11:12:49 +01:00
parent 64ab2d4519
commit 2992cc16ff
4 changed files with 8 additions and 0 deletions

View File

@@ -23,6 +23,8 @@ dependencies {
}
sourceCompatibility = 1.7
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
protobuf {
generatedFilesBaseDir = new File(projectDir, '/src') // workaround for '$projectDir/src'