import Ġcom . github . jen gel man . gradle . plugins . shadow . tasks . Shadow Jar Ċ Ċ val Ġk tor _ version : ĠString Ġby Ġproject Ċ val Ġkotlin _ version : ĠString Ġby Ġproject Ċ val Ġlog back _ version : ĠString Ġby Ġproject Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġapplication ĊĠĠĠ Ġkotlin (" jvm ") Ġversion Ġ" 1 . 3 . 7 0 " ĊĠĠĠ Ġid (" com . github . john ren gel man . shadow ") Ġversion Ġ" 7 . 0 . 0 " Ċ } Ċ Ċ group Ġ= Ġ" dev . top pe . long polling " Ċ version Ġ= Ġ" 0 . 0 . 1 " Ċ Ċ application Ġ{ ĊĠĠĠ Ġmain ClassName Ġ= Ġ" io . ktor . server . netty . Engine Main " Ċ } Ċ Ċ tasks Ġ{ ĊĠĠĠ Ġnamed < Shadow Jar >(" shadow Jar ") Ġ{ ĊĠĠĠĠĠĠĠ Ġarchive Base Name . set (" shadow ") ĊĠĠĠĠĠĠĠ Ġmerge Service Files () ĊĠĠĠĠĠĠĠ Ġmanifest Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġattributes ( map Of (" Main - Class " Ġto Ġapplication . main ClassName )) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ Ċ tasks Ġ{ ĊĠĠĠ Ġbuild Ġ{ ĊĠĠĠĠĠĠĠ Ġdepends On ( shadow Jar ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ repositories Ġ{ ĊĠĠĠ Ġmaven Local () ĊĠĠĠ Ġj center () ĊĠĠĠ Ġmaven Ġ{ Ġurl Ġ= Ġuri (" https :// kotlin . bin tray . com / ktor ") Ġ} Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġimplementation (" org . jetbrains . kotlin : kotlin - stdlib - jdk 8 :$ kotlin _ version ") ĊĠĠĠ Ġimplementation (" io . ktor : ktor - server - netty :$ ktor _ version ") ĊĠĠĠ Ġimplementation (" ch . qos . log back : log back - classic :$ log back _ version ") ĊĠĠĠ Ġimplementation (" io . ktor : ktor - server - core :$ ktor _ version ") ĊĠĠĠ Ġimplementation (" io . ktor : ktor - locations :$ ktor _ version ") ĊĠĠĠ Ġtest Implementation (" io . ktor : ktor - server - tests :$ ktor _ version ") Ċ } Ċ Ċ kotlin . source Sets [" main "]. kotlin . src Dirs (" src ") Ċ kotlin . source Sets [" test "]. kotlin . src Dirs (" test ") Ċ Ċ source Sets [" main "]. resources . src Dirs (" resources ") Ċ source Sets [" test "]. resources . src Dirs (" test resources ") Ċ