From 5bead0b27dbce497762dd4a07cfb5d0e6670a816 Mon Sep 17 00:00:00 2001 From: hstyi Date: Mon, 17 Feb 2025 09:36:14 +0800 Subject: [PATCH] fix: high CPU --- build.gradle.kts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 73656d7..986c7d0 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,6 +8,7 @@ import java.nio.file.Files plugins { java + idea application alias(libs.plugins.kotlin.jvm) alias(libs.plugins.kotlinx.serialization) @@ -116,7 +117,6 @@ application { "-XX:+ZUncommit", "-XX:+ZGenerational", "-XX:ZUncommitDelay=60", - "-XX:SoftMaxHeapSize=64m" ) if (os.isMacOsX) { @@ -244,7 +244,6 @@ tasks.register("jpackage") { "-XX:+ZUncommit", "-XX:+ZGenerational", "-XX:ZUncommitDelay=60", - "-XX:SoftMaxHeapSize=64m", "-XX:+HeapDumpOnOutOfMemoryError", "-Dlogger.console.level=off", "-Dkotlinx.coroutines.debug=off", @@ -542,4 +541,11 @@ kotlin { @Suppress("UnstableApiUsage") vendor = JvmVendorSpec.JETBRAINS } +} + +idea { + module { + isDownloadJavadoc = true + isDownloadSources = true + } } \ No newline at end of file