From 4cfb577e48d928871df36a1b044f893715003dd1 Mon Sep 17 00:00:00 2001 From: Graham Date: Thu, 16 Apr 2020 09:18:38 +0100 Subject: [PATCH] Replace StandardCharsets with Charsets Signed-off-by: Graham --- build.gradle.kts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index bad5a451..0c272eb8 100644 --- a/build.gradle.kts +++ b/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 {