```task writeConf { def conf = new File('src/m...
# ktor
b
Copy code
task writeConf {
    def conf = new File('src/main/resources/application.conf')
    def port = System.getProperty("port", "8088")
    conf.text ="ktor {\n" + 
            "        port = $port\n" + (...)
            "}"

}

run.dependsOn writeConf