From fbd5c005feb772b9d9ff93d95971e569e226b1fb Mon Sep 17 00:00:00 2001 From: Angelillo15 Date: Fri, 5 Jul 2024 15:16:29 +0200 Subject: [PATCH] Fix javadoc build --- build.gradle.kts | 8 ++++++++ .../java/com/nookure/core/inv/NookureInventoryEngine.java | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 0589aed..5a46b64 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -86,4 +86,12 @@ allprojects { java { withJavadocJar() withSourcesJar() +} + +tasks { + withType { + val o = options as StandardJavadocDocletOptions + o.encoding = "UTF-8" + o.source = "17" + } } \ No newline at end of file diff --git a/src/main/java/com/nookure/core/inv/NookureInventoryEngine.java b/src/main/java/com/nookure/core/inv/NookureInventoryEngine.java index d30ecf8..2572b31 100644 --- a/src/main/java/com/nookure/core/inv/NookureInventoryEngine.java +++ b/src/main/java/com/nookure/core/inv/NookureInventoryEngine.java @@ -81,12 +81,12 @@ private static FileLoader getLoaderByPath(@NotNull Path path) { * Renders a template with the given context *

* Here is an example of how to use this method: + *

*
    *     NookureInventoryEngine engine = new NookureInventoryEngine(Path.of("/path/to/templates"));
    *
    *     engine.renderTemplate("template.html", "name", "Angelillo15", "age", "16");
-   * 
-   * 

+ *
* * @param templateName The name of the template to render * @param context The context to render the template with @@ -152,12 +152,12 @@ public GuiLayout parseLayout(@NotNull String templateName, @NotNull Map * Here is an example of how to use this method: + *

*
    *     NookureInventoryEngine engine = new NookureInventoryEngine(Path.of("/path/to/templates"));
    *
    *     engine.parseLayout("template.html", "name", "Angelillo15", "age", "16");
-   * 
-   * 

+ *
* * @param templateName The name of the template to render * @param context The context to render the template with