Skip to content

Commit

Permalink
Fix javadoc build
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelillo15 committed Jul 5, 2024
1 parent bb7f6c2 commit fbd5c00
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,12 @@ allprojects {
java {
withJavadocJar()
withSourcesJar()
}

tasks {
withType<Javadoc> {
val o = options as StandardJavadocDocletOptions
o.encoding = "UTF-8"
o.source = "17"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ private static FileLoader getLoaderByPath(@NotNull Path path) {
* Renders a template with the given context
* <p>
* Here is an example of how to use this method:
* </p>
* <pre>
* NookureInventoryEngine engine = new NookureInventoryEngine(Path.of("/path/to/templates"));
*
* engine.renderTemplate("template.html", "name", "Angelillo15", "age", "16");
* <pre>
* </p>
* </pre>
*
* @param templateName The name of the template to render
* @param context The context to render the template with
Expand Down Expand Up @@ -152,12 +152,12 @@ public GuiLayout parseLayout(@NotNull String templateName, @NotNull Map<String,
*
* <p>
* Here is an example of how to use this method:
* </p>
* <pre>
* NookureInventoryEngine engine = new NookureInventoryEngine(Path.of("/path/to/templates"));
*
* engine.parseLayout("template.html", "name", "Angelillo15", "age", "16");
* <pre>
* </p>
* </pre>
*
* @param templateName The name of the template to render
* @param context The context to render the template with
Expand Down

0 comments on commit fbd5c00

Please sign in to comment.