Added explicit Java source encoding

At my PC javac use codepage CP1251 by default and fails to compile file OsmAnd-java/src/main/java/net/osmand/data/MapObject.java because in line 26 there are some unicode symbols.
To fix compilation errors I've added UTF8 encoding configuration to Osmand-java/build.gradle file
This commit is contained in:
skozyr 2018-08-10 16:22:13 -04:00 committed by GitHub
parent 515f19fd64
commit 83bf10d600
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,7 @@ configurations {
tasks.withType(JavaCompile) { tasks.withType(JavaCompile) {
sourceCompatibility = "1.7" sourceCompatibility = "1.7"
targetCompatibility = "1.7" targetCompatibility = "1.7"
options.encoding = 'UTF-8'
} }
task collectRoutingResources(type: Sync) { task collectRoutingResources(type: Sync) {