avoid compile error caused by encoding

This commit is contained in:
krrr 2022-05-03 12:05:00 +08:00 committed by Melledy
parent b253e779a2
commit 5b6da38160
2 changed files with 4 additions and 1 deletions

View File

@ -36,6 +36,8 @@ plugins {
id 'signing' id 'signing'
} }
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
sourceCompatibility = JavaVersion.VERSION_17 sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17
@ -214,6 +216,7 @@ signing {
} }
javadoc { javadoc {
options.encoding = 'UTF-8'
if(JavaVersion.current().isJava9Compatible()) { if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true) options.addBooleanOption('html5', true)
} }

View File

@ -7,7 +7,7 @@ import express.http.Response;
import java.io.IOException; import java.io.IOException;
/** /**
* Used for processing crash dumps & logs generated by the game. * Used for processing crash dumps and logs generated by the game.
* Logs are in JSON, and are sent to the server for logging. * Logs are in JSON, and are sent to the server for logging.
*/ */
public final class ClientLogHandler implements HttpContextHandler { public final class ClientLogHandler implements HttpContextHandler {