Replace StandardCharsets with Charsets

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 5 years ago
parent 609576be63
commit 4cfb577e48
  1. 3
      build.gradle.kts

@ -1,7 +1,6 @@
import org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.io.ByteArrayOutputStream
import java.nio.charset.StandardCharsets
defaultTasks("build")
@ -207,7 +206,7 @@ fun commitHash(): String {
commandLine("git", "rev-parse", "HEAD")
standardOutput = out
}.assertNormalExitValue()
return String(out.toByteArray(), StandardCharsets.UTF_8).trim()
return String(out.toByteArray(), Charsets.UTF_8).trim()
}
tasks.dokka {

Loading…
Cancel
Save