Specify explicit UTF-8 encoding for compilation

UTF-8 is the default file encoding on some platforms (e.g. OS X), but
for other platforms (e.g. Windows), UTF-8 characters in classes like
ECKey cause errors during compilation on other platforms (e.g. Windows).

See http://pastebin.com/X9jEemje for examples of these errors.

This commit configures Gradle to explicitly use UTF-8 encoding for all
compilation tasks.
This commit is contained in:
Chris Beams 2014-12-30 21:54:36 +01:00
parent 36e266b102
commit d54b65f398
No known key found for this signature in database
GPG Key ID: 3D214F8F5BC5ED73
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,10 @@ subprojects {
group = 'org.ethereum'
version = '0.7.14-SNAPSHOT'
tasks.withType(Compile) {
options.encoding = 'UTF-8'
}
repositories {
jcenter()
}