val Ġk tor Version : ĠString Ġby Ġproject Ċ val Ġlog back Version : ĠString Ġby Ġproject Ċ val Ġlog back Encoder Version : ĠString Ġby Ġproject Ċ val Ġlog back Kafka Version : ĠString Ġby Ġproject Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġapplication ĊĠĠĠ Ġkotlin (" jvm ") ĊĠĠĠ Ġid (" com . bm us ch ko . docker - java - application ") Ċ } Ċ Ċ group Ġ= Ġroot Project . group Ċ version Ġ= Ġroot Project . version Ċ Ċ application Ġ{ ĊĠĠĠ Ġmain ClassName Ġ= Ġ" io . ktor . server . netty . Engine Main " Ċ } Ċ Ċ docker Ġ{ Ċ // Ġ Ġurl Ġ= Ġ' https :// 1 9 2 . 1 6 8 . 5 9 . 1 0 3 : 2 3 7 6 ' Ċ // Ġ Ġcert Path Ġ= Ġnew ĠFile ( System . properties [' user . home '], Ġ'. boot 2 docker / certs / boot 2 docker - vm ') Ċ Ċ // ĠĠĠ Ġregistry Credentials Ġ{ Ċ // ĠĠĠĠĠĠĠ Ġurl . set ( docker Params . docker Url ) Ċ // ĠĠĠĠĠĠĠ Ġdocker Params . docker User ?. also Ġ{ Ġusername . set ( it ) Ġ} Ċ // ĠĠĠĠĠĠĠ Ġdocker Params . docker Pass ?. also Ġ{ Ġpassword . set ( it ) Ġ} Ċ // ĠĠĠ Ġemail Ġ= Ġ' ben jamin . mus ch ko @ gmail . com ' Ċ // ĠĠĠ Ġ} ĊĊĠĠĠ Ġjava Application Ġ{ ĊĠĠĠĠĠĠĠ Ġbase Image . set (" ad opt openjdk / openjdk 1 1 : alpine - jre ") ĊĠĠĠĠĠĠĠ Ġmaintainer . set ("( c ) ĠO t us ") ĊĠĠĠĠĠĠĠ Ġports . set ( listOf ( 8 0 8 0 )) ĊĠĠĠĠĠĠĠ Ġval Ġimage Name Ġ= Ġproject . name ĊĠĠĠĠĠĠĠ Ġimages . set ( listOf ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ"$ image Name :${ project . version }", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ"$ image Name : latest " ĊĠĠĠĠĠĠĠ Ġ)) ĊĠĠĠĠĠĠĠ Ġj vm Args . set ( listOf ("- X ms 2 5 6 m ", Ġ"- X mx 5 1 2 m ")) ĊĠĠĠ Ġ} Ċ } ĊĊ Ċ dependencies Ġ{ ĊĠĠĠ Ġimplementation ( project (": ok - user - mp - common ")) ĊĠĠĠ Ġimplementation ( project (": ok - user - be - common ")) ĊĠĠĠ Ġimplementation ( project (": ok - user - mp - transport - models ")) ĊĠĠĠ Ġimplementation ( project (": ok - user - be - transport - multi platform ")) ĊĠĠĠ Ġimplementation ( project (": ok - user - be - log ics ")) ĊĠĠĠ Ġimplementation ( project (": ok - user - be - repo - in memory ")) ĊĠĠĠ Ġimplementation ( project (": ok - user - be - repo - cassandra ")) ĊĊĠĠĠ Ġimplementation ( kotlin (" stdlib - jdk 8 ")) ĊĠĠĠ Ġimplementation (" io . ktor : ktor - server - netty :$ ktor Version ") ĊĠĠĠ Ġimplementation (" net . logstash . log back : logstash - log back - encoder :$ log back Encoder Version ") ĊĠĠĠ Ġimplementation (" com . github . daniel we gener : log back - kafka - appender :$ log back Kafka Version ") ĊĠĠĠ Ġimplementation (" ch . qos . log back : log back - classic :$ log back Version ") ĊĠĠĠ Ġimplementation (" org . apache . kafka : kafka - clients : 2 . 5 . 1 ") ĊĊĠĠĠ Ġimplementation (" io . ktor : ktor - server - core :$ ktor Version ") ĊĠĠĠ Ġimplementation (" io . ktor : ktor - server - host - common :$ ktor Version ") ĊĠĠĠ Ġimplementation (" io . ktor : ktor - serialization :$ 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 ") Ċ