From c01ca21103951361973782446e57e85fbff634fb Mon Sep 17 00:00:00 2001 From: mworzala Date: Tue, 2 Jul 2024 17:40:32 -0400 Subject: [PATCH] fix: javadoc issues --- build.gradle.kts | 10 +++++++++- .../java/net/hollowcube/luau/compiler/DebugLevel.java | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 5680b53..d9a7198 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -33,9 +33,9 @@ sourceSets { } } - tasks.withType { archiveBaseName = "luau" + duplicatesStrategy = DuplicatesStrategy.EXCLUDE } tasks.withType { @@ -43,6 +43,14 @@ tasks.withType { options.compilerArgs.add("--enable-preview") } +tasks.javadoc { + (options as StandardJavadocDocletOptions).run { + encoding = "UTF-8" + addStringOption("source", "21") + addBooleanOption("-enable-preview", true) + } +} + tasks.test { useJUnitPlatform() diff --git a/src/main/java/net/hollowcube/luau/compiler/DebugLevel.java b/src/main/java/net/hollowcube/luau/compiler/DebugLevel.java index 61b1870..4f2ef2c 100644 --- a/src/main/java/net/hollowcube/luau/compiler/DebugLevel.java +++ b/src/main/java/net/hollowcube/luau/compiler/DebugLevel.java @@ -9,11 +9,11 @@ public enum DebugLevel { */ NONE, /** - * line info & function names only; sufficient for backtraces + * line info and function names only; sufficient for backtraces */ BACKTRACE, /** - * full debug info with local & upvalue names; necessary for debugger + * full debug info with local and upvalue names; necessary for debugger */ DEBUGGER, }