From 02a3dab244886398154ea04332dd8a0a1042fac9 Mon Sep 17 00:00:00 2001 From: squid233 <60126026+squid233@users.noreply.github.com> Date: Sat, 2 Dec 2023 10:31:16 +0800 Subject: [PATCH] Update build.gradle.kts --- build.gradle.kts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index b7e8299..f0a9774 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -117,10 +117,14 @@ tasks.withType { charSet = "UTF-8" isAuthor = true if (jdkEarlyAccessDoc == null) { - links("https://docs.oracle.com/en/java/javase/$targetJavaVersion/docs/api/") + links("https://docs.oracle.com/en/java/javase/$jdkVersion/docs/api/") } else { links("https://download.java.net/java/early_access/$jdkEarlyAccessDoc/docs/api/") } + if (jdkEnablePreview.toBoolean()) { + addBooleanOption("-enable-preview", true) + addStringOption("source", jdkVersion) + } } } }