val Ġk tor Version Ġ= Ġ" 1 . 6 . 4 " Ċ val Ġk tl int Version Ġ= Ġ" 0 . 3 8 . 1 " Ċ val Ġlog 4 j Version Ġ= Ġ" 2 . 1 7 . 1 " Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġapplication ĊĠĠĠ Ġkotlin (" jvm ") Ġversion Ġ" 1 . 6 . 1 0 " ĊĠĠĠ Ġid (" com . github . david mc 2 4 . gradle . plugin . avro ") Ġversion Ġ" 1 . 2 . 1 " ĊĠĠĠ Ġid (" com . github . john ren gel man . shadow ") Ġversion Ġ" 7 . 1 . 0 " ĊĠĠĠ Ġid (" com . github . ben - man es . versions ") Ġversion Ġ" 0 . 3 9 . 0 " ĊĠĠĠ Ġid (" com . diff plug . spot less ") Ġversion Ġ" 5 . 1 7 . 0 " Ċ } Ċ Ċ apply Ġ{ ĊĠĠĠ Ġplugin (" com . diff plug . spot less ") Ċ } Ċ Ċ group Ġ= Ġ" no . nav . t pts " Ċ version Ġ= Ġ" 1 . 0 - SNAPSHOT " Ċ Ċ application Ġ{ ĊĠĠĠ Ġapplication Name Ġ= Ġ" t pts - jo ark - mot tak " ĊĠĠĠ Ġmain Class . set (" no . nav . t pts . jo ark . mot tak . Application Kt ") Ċ } Ċ Ċ repositories Ġ{ ĊĠĠĠ Ġmaven Central () ĊĠĠĠ Ġmaven (" https :// packages . con fluent . io / maven /") ĊĠĠĠ Ġmaven (" https :// repo . ade o . no / repository / maven - releases ") ĊĠĠĠ Ġmaven (" https :// repo . ade o . no / repository / nexus 2 - m 2 internal ") Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġimplementation ( kotlin (" stdlib ")) ĊĠĠĠ Ġimplementation (" org . apache . logging . log 4 j : log 4 j - api :$ log 4 j Version ") ĊĠĠĠ Ġimplementation (" org . apache . logging . log 4 j : log 4 j - core :$ log 4 j Version ") ĊĠĠĠ Ġimplementation (" org . apache . logging . log 4 j : log 4 j - slf 4 j - impl :$ log 4 j Version ") ĊĠĠĠ Ġimplementation (" io . github . micro utils : kotlin - logging - jvm : 2 . 1 . 2 1 ") ĊĠĠĠ Ġimplementation (" io . ktor : ktor - server :$ ktor Version ") ĊĠĠĠ Ġimplementation (" io . ktor : ktor - server - netty :$ ktor Version ") ĊĠĠĠ Ġimplementation (" io . ktor : ktor - auth :$ ktor Version ") ĊĠĠĠ Ġimplementation (" io . ktor : ktor - auth - jwt :$ ktor Version ") ĊĠĠĠ Ġimplementation (" io . ktor : ktor - locations :$ ktor Version ") ĊĠĠĠ Ġimplementation (" io . ktor : ktor - metrics - micro meter :$ ktor Version ") ĊĠĠĠ Ġimplementation (" io . micro meter : micro meter - registry - prometheus : 1 . 7 . 4 ") ĊĠĠĠ Ġimplementation (" org . apache . kafka : kafka - clients : 3 . 0 . 0 ") ĊĠĠĠ Ġimplementation (" org . apache . avro : avro : 1 . 1 0 . 2 ") ĊĠĠĠ Ġimplementation (" io . con fluent : kafka - avro - serializer : 6 . 2 . 1 ") ĊĠĠĠ Ġimplementation (" com . nat pr y ce : kon fig : 1 . 6 . 1 0 . 0 ") ĊĊĠĠĠ Ġtest Implementation ( platform (" org . junit : junit - bom : 5 . 8 . 1 ")) ĊĠĠĠ Ġtest Implementation (" org . junit . jupiter : junit - jupiter ") ĊĠĠĠ Ġtest Implementation (" io . mock k : mock k : 1 . 1 2 . 0 ") ĊĠĠĠ Ġtest Implementation (" io . ktor : ktor - client - mock :$ ktor Version ") Ċ } Ċ Ċ java Ġ{ ĊĠĠĠ Ġsource Compatibility Ġ= ĠJava Version . VERSION _ 1 7 ĊĠĠĠ Ġtarget Compatibility Ġ= ĠJava Version . VERSION _ 1 7 Ċ } Ċ Ċ spot less Ġ{ ĊĠĠĠ Ġkotlin Ġ{ ĊĠĠĠĠĠĠĠ Ġk tl int ( kt lint Version ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġkotlin Gradle Ġ{ ĊĠĠĠĠĠĠĠ Ġtarget (" *. gradle . k ts ", Ġ" build Src /**/*. kt * ") ĊĠĠĠĠĠĠĠ Ġk tl int ( kt lint Version ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ // Ġhttps :// github . com / ben - man es / gradle - versions - plugin Ċ fun Ġis Non Stable ( version : ĠString ): ĠBoolean Ġ{ ĊĠĠĠ Ġval Ġstable Keyword Ġ= ĠlistOf (" RELEASE ", Ġ" FINAL ", Ġ" GA "). any Ġ{ Ġversion . toUpperCase (). contains ( it ) Ġ} ĊĠĠĠ Ġval Ġregex Ġ= Ġ"^ [ 0 - 9 ,. v - ]+ (- r )? $ ". to Regex () ĊĠĠĠ Ġval Ġis Stable Ġ= Ġstable Keyword Ġ|| Ġregex . matches ( version ) ĊĠĠĠ Ġreturn Ġis Stable . not () Ċ } Ċ Ċ tasks Ġ{ ĊĠĠĠ Ġcompile Kotlin Ġ{ ĊĠĠĠĠĠĠĠ Ġdepends On (" spot less Check ") ĊĠĠĠĠĠĠĠ Ġkotlin Options . jvm Target Ġ= ĠJava Version . VERSION _ 1 7 . toString () ĊĠĠĠĠĠĠĠ Ġkotlin Options . free Compiler Args Ġ+= Ġ"- X opt - in = kotlin . Requires Opt In " ĊĠĠĠ Ġ} ĊĠĠĠ Ġshadow Jar Ġ{ ĊĠĠĠĠĠĠĠ Ġdepends On (" test ") ĊĠĠĠĠĠĠĠ Ġarchive Base Name . set ( root Project . name ) ĊĠĠĠĠĠĠĠ Ġarchive Classifier . set ("") ĊĠĠĠĠĠĠĠ Ġarchive Version . set ("") ĊĠĠĠ Ġ} ĊĠĠĠ Ġ// Ġhttps :// github . com / ben - man es / gradle - versions - plugin ĊĠĠĠ Ġdependency Updates Ġ{ ĊĠĠĠĠĠĠĠ Ġreject Version If Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġis Non Stable ( candidate . version ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġtest Ġ{ ĊĠĠĠĠĠĠĠ Ġuse JUnit Platform () ĊĠĠĠĠĠĠĠ Ġ// ĠT reng s Ġin nt il Ġvid ere Ġfor Ġbyte buddy Ġmed Ġjava Ġ 1 6 , Ġsom Ġbru kes Ġav Ġmock k . ĊĠĠĠĠĠĠĠ Ġj vm Args Ġ= ĠlistOf ("- D net . byte buddy . experimental = true ") ĊĠĠĠĠĠĠĠ Ġtest Logging Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġshow Exceptions Ġ= Ġtrue ĊĠĠĠĠĠĠĠĠĠĠĠ Ġshow Stack Tr aces Ġ= Ġtrue ĊĠĠĠĠĠĠĠĠĠĠĠ Ġexception Format Ġ= Ġorg . gradle . api . tasks . testing . logging . Test Exception Format . FULL ĊĠĠĠĠĠĠĠĠĠĠĠ Ġevents Ġ= Ġset Of ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġorg . gradle . api . tasks . testing . logging . Test Log Event . PAS SED , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġorg . gradle . api . tasks . testing . logging . Test Log Event . SKIP PED , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġorg . gradle . api . tasks . testing . logging . Test Log Event . FAILED ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ