plugins Ġ{ ĊĠĠĠ Ġapplication ĊĠĠĠ Ġid (" org . springframework . boot ") ĊĠĠĠ Ġkotlin (" plugin . spring ") ĊĠĠĠ Ġid (" com . g ory len ko . gradle - git - properties ") Ġversion Ġ" 2 . 2 . 2 " ĊĠĠĠ Ġid (" com . pal ant ir . docker ") Ċ } Ċ Ċ apply Ġ{ ĊĠĠĠ Ġplugin (" io . spring . dependency - management ") ĊĠĠĠ Ġplugin (" org . springframework . boot ") ĊĠĠĠ Ġplugin (" com . g ory len ko . gradle - git - properties ") ĊĠĠĠ Ġplugin (" com . pal ant ir . docker ") Ċ } Ċ Ċ application Ġ{ ĊĠĠĠ Ġmain ClassName Ġ= Ġ" hr . from . jos ip ant ol is . ser ious call ers only . app . Main " Ċ } Ċ Ċ tasks Ġ{ ĊĠĠĠ Ġval Ġunpack Ġ= Ġcreate < Copy >(" unpack ") Ġ{ ĊĠĠĠĠĠĠĠ Ġdepends On Ġ+= Ġboot Jar ĊĠĠĠĠĠĠĠ Ġfrom ( zip Tree ( get ByName ( boot Jar . name ). outputs . files . single File )) ĊĠĠĠĠĠĠĠ Ġinto (" build / dependency ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġdocker Ġ{ ĊĠĠĠĠĠĠĠ Ġname Ġ= Ġ" hr . from . jos ip ant ol is /${ root Project . name }" ĊĠĠĠĠĠĠĠ Ġcopy Spec . from ( unpack . outputs ). into (" dependency ") ĊĠĠĠĠĠĠĠ Ġbuild Args ( map Of ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" DEPEND ENCY " Ġto Ġ" dependency ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" MAIN _ CLASS " Ġto Ġapplication . main ClassName ĊĠĠĠĠĠĠĠ Ġ)) ĊĠĠĠ Ġ} Ċ } ĊĊ Ċ ext [" okhttp 3 . version "] Ġ= Ġ" 4 . 4 . 1 " Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġimplementation ( project (": slack - runtime ")) ĊĊĠĠĠ Ġimplementation ( kotlin (" reflect ")) ĊĠĠĠĠĊĠĠĠ Ġimplementation (" org . springframework . boot : spring - boot - starter ") ĊĠĠĠ Ġimplementation (" org . springframework . boot : spring - boot - starter - web ") ĊĠĠĠ Ġimplementation (" org . springframework . boot : spring - boot - starter - act uator ") ĊĠĠĠ Ġimplementation (" io . micro meter : micro meter - registry - prometheus ") ĊĊĠĠĠ Ġimplementation (" com . slack . api : bolt - servlet : 1 . 0 . 3 ") ĊĊĠĠĠ Ġtest Implementation (" org . springframework . boot : spring - boot - starter - test ") Ċ } Ċ