From c235f0b42b8a35be6e540b2ec721cb6953094add Mon Sep 17 00:00:00 2001 From: jonmv Date: Thu, 12 May 2022 20:41:42 +0200 Subject: Various cleanup, bump junit micro, trim dependencies --- .../main/java/ai/vespa/hosted/plugin/GenerateTestDescriptorMojo.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vespa-maven-plugin') diff --git a/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/GenerateTestDescriptorMojo.java b/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/GenerateTestDescriptorMojo.java index 0b2c9857ca7..6eb209463fc 100644 --- a/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/GenerateTestDescriptorMojo.java +++ b/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/GenerateTestDescriptorMojo.java @@ -14,6 +14,8 @@ import java.nio.file.Path; import java.nio.file.Paths; import java.util.stream.Stream; +import static java.nio.charset.StandardCharsets.UTF_8; + /** * Generates a test descriptor file based on content of the compiled test classes * @@ -54,7 +56,7 @@ public class GenerateTestDescriptorMojo extends AbstractMojo { try { Path descriptorFile = testClassesDirectory().resolve(TestDescriptor.DEFAULT_FILENAME); Files.createDirectories(descriptorFile.getParent()); - Files.write(descriptorFile, descriptor.toJson().getBytes()); + Files.write(descriptorFile, descriptor.toJson().getBytes(UTF_8)); } catch (IOException e) { throw new MojoExecutionException("Failed to write test descriptor file: " + e.getMessage(), e); } -- cgit v1.2.3