rharter
12/24/2020, 2:38 AMbuild.gradle.kts
file, but set the value to whatever it is in the system property, and that will effectively pass along the value to the application process.
application {
mainClassName = main_class
applicationDefaultJvmArgs = listOf(
"-server",
"-Djava.awt.headless=true",
"-Dio.ktor.development=${System.getProperty("io.ktor.development") ?: "false"}",
"-Xms128m",
"-Xmx256m",
"-XX:+UseG1GC",
"-XX:MaxGCPauseMillis=100"
)
}