Slackbot
01/12/2024, 4:24 PMFuyang Liu
01/12/2024, 4:25 PMtasks.withType<JavaCompile> {
options.encoding = "UTF-8"
with(options.forkOptions) {
memoryMaximumSize = "4096m"
}
}
I tried to setup as such but failed with
Unrecognized option: -J-Xmx4096m
Error: Could not create the Java Virtual Machine.Fuyang Liu
01/12/2024, 4:40 PMoptions.compilerArgs = listOf("-Xms2048m", "-Xmx4096m")
In there, but this seem not really working as I saw this basically just adds some parameters into a config file that is send to the eclipse compiler java process, that java process seems still not have much memory increased.Fuyang Liu
01/12/2024, 4:58 PMoptions.forkOptions.jvmArgs = listOf("-Xms2048m", "-Xmx4096m")
not quite sure what's the difference with the with used above...