Mario Andhika
01/16/2025, 8:38 AMapplicationDefaultJvmArgs
not be passed to the program? I’m trying to pass a variable from gradle to Ktor like this:
application {
applicationDefaultJvmArgs = listOf("-Dzeals.version=7.7.7")
}
but in Ktor System.getProperty("zeals.version")
returns null
tapchicoma
01/16/2025, 8:46 AMApplicationPlugin
sets as a convention value of applicationDefaultJvmArgs
to the JavaExec.jvmArguments
task input. The only way it could be overwritten - is that you are calling JavaExec.jvmArguments.set()
or JavaExec.jvmArguments.add()
down the build script.tapchicoma
01/16/2025, 8:47 AMJavaExec
Mario Andhika
01/16/2025, 9:03 AMMario Andhika
01/16/2025, 9:09 AMMario Andhika
01/16/2025, 9:10 AMtapchicoma
01/16/2025, 9:15 AMMario Andhika
01/16/2025, 9:17 AMMario Andhika
01/16/2025, 9:19 AMtapchicoma
01/16/2025, 9:41 AMJavaExec
task, but invoking compiled code directly.
So you need to add here -Dzeals.version=7.7.7
into "program arguments"