Skip to content

Commit

Permalink
Fix Windows build errors caused by file encoding mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
magneticflux- committed Jan 21, 2019
1 parent 205d231 commit 95bef6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m
# Explicit encoding required for sources with special chars to build on Windows
org.gradle.jvmargs=-Xmx1536m -Dfile.encoding=UTF-8

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
Expand Down
1 change: 1 addition & 0 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ task sourcesJar(type: Jar) {

task javadoc(type: Javadoc) {
failOnError false
options.encoding 'UTF-8'
source = android.sourceSets.main.java.sourceFiles
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += configurations.compile
Expand Down

0 comments on commit 95bef6f

Please sign in to comment.