Any possible reason that a Ktor project would igno...
# ktor
m
Any possible reason that a Ktor project would ignore gradle’s application block? I’m trying to pass a variable like this:
Copy code
application {
  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:
Copy code
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 applicationDefaultJvmArgs
a
How do you run the application?
m
Using IntelliJ Run button with Ktor run config
a
The listed configuration is applied only to the Gradle Application plugin and has an effect when executing the
run
Gradle task. You can specify these properties in IntelliJ IDEA by using the VM options field in the run configuration window.
1