commit 4bba71db5d697849fb54f1573fa5a2e6e9662e7b
parent c84d4bec5aa4e90a9867c69d7acf5605374a422b
Author: Wim Dupont <wim@wimdupont.com>
Date: Thu, 17 Mar 2022 20:20:43 +0100
version bump
Former-commit-id: c15b19e169d2fd05b5e2bcbfab33746c6b746065
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pom.xml b/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
- <version>2.6.3</version>
+ <version>2.6.4</version>
</parent>
<groupId>com.wimdupont</groupId>
<artifactId>personalweb</artifactId>
@@ -114,7 +114,7 @@
<plugin>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-maven-plugin</artifactId>
- <version>8.4.4</version>
+ <version>8.5.4</version>
<configuration>
<url>jdbc:mariadb://localhost:3306/sxcyweb</url>
<!-- Run mvn flwyway plugin commands with following parameters: -->
diff --git a/src/main/java/com/wimdupont/personalweb/service/BlogArticleGenerator.java b/src/main/java/com/wimdupont/personalweb/service/BlogArticleGenerator.java
@@ -33,7 +33,7 @@ public class BlogArticleGenerator {
String htmlArticle = adocConverter.convert(article);
new File(String.format("%s/html/", Constants.ARTICLES_DIRECTORY)).mkdir();
new File(String.format("%s/html/%s", Constants.ARTICLES_DIRECTORY, article.getName().replaceFirst(".adoc", ".html"))).createNewFile();
- Files.write(Paths.get(String.format("%s/html/%s", Constants.ARTICLES_DIRECTORY, article.getName().replaceFirst(".adoc", ".html"))), htmlArticle.getBytes(StandardCharsets.UTF_8));
+ Files.writeString(Paths.get(String.format("%s/html/%s", Constants.ARTICLES_DIRECTORY, article.getName().replaceFirst(".adoc", ".html"))), htmlArticle);
log.info("Article [{}] has been generated.", article.getName());
} catch (IOException e) {
log.error(e.getMessage(), e);