import Ġorg . jetbrains . kotlin . gradle . tasks . Kotlin Compile Ċ import Ġorg . springframework . boot . gradle . tasks . bund ling . Boot Build Image Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġid (" org . springframework . boot ") Ġversion Ġ" 2 . 4 . 3 " ĊĠĠĠ Ġkotlin (" jvm ") Ġversion Ġ" 1 . 4 . 3 0 " ĊĠĠĠ Ġkotlin (" plugin . spring ") Ġversion Ġ" 1 . 4 . 3 0 " ĊĠĠĠ Ġkotlin (" plugin . jpa ") Ġversion Ġ" 1 . 4 . 3 0 " Ċ } Ċ Ċ apply ( plugin Ġ= Ġ" io . spring . dependency - management ") Ċ Ċ group Ġ= Ġ" com . ok ta . kotlin " Ċ version Ġ= Ġ" 0 . 0 . 1 - SNAPSHOT " Ċ java . source Compatibility Ġ= ĠJava Version . VERSION _ 1 1 Ċ Ċ repositories Ġ{ ĊĠĠĠ Ġmaven Central () Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġimplementation (" org . springframework . boot : spring - boot - starter - data - jpa ") ĊĠĠĠ Ġimplementation (" org . springframework . boot : spring - boot - starter - data - rest ") ĊĠĠĠ Ġimplementation (" org . springframework . boot : spring - boot - starter - web ") ĊĠĠĠ Ġimplementation (" org . springframework . boot : spring - boot - starter - act uator ") ĊĠĠĠ Ġimplementation (" com . fasterxml . jackson . module : jackson - module - kotlin ") ĊĠĠĠ Ġimplementation (" org . jetbrains . kotlin : kotlin - reflect ") ĊĠĠĠ Ġimplementation (" org . jetbrains . kotlin : kotlin - stdlib - jdk 8 ") ĊĠĠĠ Ġimplementation (" com . ok ta . spring : ok ta - spring - boot - starter : 1 . 4 . 0 ") ĊĠĠĠ Ġimplementation (" io . micro meter : micro meter - registry - prometheus : 1 . 6 . 4 ") ĊĠĠĠ Ġruntime Only (" com . h 2 database : h 2 ") ĊĠĠĠ Ġtest Implementation (" org . springframework . boot : spring - boot - starter - test ") Ġ{ ĊĠĠĠĠĠĠĠ Ġexclude ( group Ġ= Ġ" org . junit . vint age ", Ġmodule Ġ= Ġ" junit - vint age - engine ") ĊĠĠĠ Ġ} Ċ } Ċ Ċ tasks . with Type < Test > Ġ{ ĊĠĠĠ Ġuse JUnit Platform () Ċ } Ċ Ċ tasks . with Type < Kotlin Compile > Ġ{ ĊĠĠĠ Ġkotlin Options Ġ{ ĊĠĠĠĠĠĠĠ Ġfree Compiler Args Ġ= ĠlistOf ("- X js r 3 0 5 = strict ") ĊĠĠĠĠĠĠĠ Ġj vm Target Ġ= Ġ" 1 1 " ĊĠĠĠ Ġ} Ċ } Ċ Ċ val Ġdocker Publish Registry Password : ĠString ? Ġby Ġproject Ċ tasks . get ByName < Boot Build Image >(" boot Build Image ") Ġ{ ĊĠĠĠ Ġimage Name Ġ= Ġ" gh cr . io / vx av ictor 5 1 3 / resources erver " ĊĠĠĠ Ġdocker Ġ{ ĊĠĠĠĠĠĠĠ Ġpublish Registry Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġusername Ġ= Ġ" vx av ictor 5 1 3 " ĊĠĠĠĠĠĠĠĠĠĠĠ Ġpassword Ġ= Ġdocker Publish Registry Password ĊĠĠĠĠĠĠĠĠĠĠĠ Ġurl Ġ= Ġ" https :// gh cr . io " ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ