diff options
author | jonmv <venstad@gmail.com> | 2022-05-12 20:41:42 +0200 |
---|---|---|
committer | jonmv <venstad@gmail.com> | 2022-05-12 20:41:42 +0200 |
commit | c235f0b42b8a35be6e540b2ec721cb6953094add (patch) | |
tree | 8c1491c6ac0be5fe1273a8f91f8e3a76d4c546cc /vespa-maven-plugin | |
parent | 32e26201ca86681150eb47661ae551a1c188c594 (diff) |
Various cleanup, bump junit micro, trim dependencies
Diffstat (limited to 'vespa-maven-plugin')
-rw-r--r-- | vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/GenerateTestDescriptorMojo.java | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |