Mario Andhika
01/16/2025, 9:27 AMapplication {
applicationDefaultJvmArgs = listOf("-Dzeals.version=7.7.7")
}
But System.getProperty("zeals.version")
returns null. Even the example in this doc https://ktor.io/docs/server-development-mode.html#environment-variable
This part:
application {
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=true")
}
Doesn’t seem to work. I’m using the IntelliJ Ktor plugin to run. I’m still able to activate development mode via Run Configurations, but I need to pass other variables also using applicationDefaultJvmArgsAleksei Tirman [JB]
01/16/2025, 2:09 PMMario Andhika
01/17/2025, 1:59 AMAleksei Tirman [JB]
01/17/2025, 7:40 AMrun
Gradle task. You can specify these properties in IntelliJ IDEA by using the VM options field in the run configuration window.