plugins Ġ{ ĊĠĠĠ Ġkotlin (" jvm ") Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġimplementation (" io . ktor : ktor - client - c io : 1 . 4 . 0 ") ĊĠĠĠ Ġimplementation (" com . google . code . gson : gson :${ root Project . extra [" versions . jar . gson "] }") ĊĠĠĠ Ġimplementation (" org . apache . velocity : velocity : 1 . 7 ") ĊĠĠĠ Ġimplementation (" org . jetbrains . kotlin x : kotlin x - serialization - core : 1 . 0 . 0 - RC ") Ċ } Ċ Ċ val Ġgenerate N pm Versions Ġby Ġgenerator ( ĊĠĠĠ Ġ" org . jetbrains . kotlin . generators . gradle . targets . js . Main Kt ", ĊĠĠĠ Ġsource Sets [" main "] Ċ ) Ċ Ċ listOf ( generate N pm Versions ). forEach Ġ{ ĊĠĠĠ Ġit . system Property ( ĊĠĠĠĠĠĠĠ Ġ" org . jetbrains . kotlin . generators . gradle . targets . js . output Source Root ", ĊĠĠĠĠĠĠĠ Ġproject (": kotlin - gradle - plugin "). project Dir . resolve (" src / main / kotlin "). absolute Path ĊĠĠĠ Ġ) Ċ }