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'

View File

@@ -9,3 +9,5 @@ dependencies {
}
sourceCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'

View File

@@ -8,6 +8,8 @@ dependencies {
}
sourceCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
task wallet_tool(type: JavaExec) {
description = 'Print and manipulate wallets.'

View File

@@ -10,6 +10,8 @@ dependencies {
}
sourceCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
task wallet_template(type: JavaExec) {
main = 'wallettemplate.Main'