/* Ċ Ġ* ĠCopyright Ġ 2 0 1 9 ĠI ce Rock ĠMAG ĠInc . ĠUse Ġof Ġthis Ġsource Ġcode Ġis Ġgoverned Ġby Ġthe ĠApache Ġ 2 . 0 Ġlicense . Ċ Ġ*/ Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġid (" org . jetbrains . kotlin . jvm ") ĊĠĠĠ Ġid (" kotlin - k apt ") ĊĠĠĠ Ġid (" maven - publish ") ĊĠĠĠ Ġid (" java - library ") Ċ } Ċ Ċ apply ( plugin Ġ= Ġ" java ") Ċ apply ( plugin Ġ= Ġ" kotlin ") Ċ Ċ group Ġ= Ġ" com . icer ock dev . service " Ċ version Ġ= Ġ" 0 . 0 . 2 " Ċ Ċ val Ġsources Jar Ġby Ġtasks . register ing ( Jar :: class ) Ġ{ ĊĠĠĠ Ġclassifier Ġ= Ġ" sources " ĊĠĠĠ Ġfrom ( source Sets . main . get (). all Source ) Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġ// Ġkotlin ĊĠĠĠ Ġimplementation (" org . jetbrains . kotlin : kotlin - stdlib - jdk 8 :${ properties [" kotlin _ version "] }") ĊĠĠĠ Ġ// Ġlogging ĊĠĠĠ Ġimplementation Ġ(" ch . qos . log back : log back - classic :${ properties [" log back _ version "] }") ĊĊĠĠĠ Ġimplementation (" org . jetbrains . kotlin x : kotlin x - coroutines - jdk 8 :${ properties [" coroutines _ version "] }") ĊĊĠĠĠ Ġ// Ġhttps :// mvn repository . com / artifact / org . apache . kafka / kafka - clients ĊĠĠĠ Ġapi ( group Ġ= Ġ" org . apache . kafka ", Ġname Ġ= Ġ" kafka - clients ", Ġversion Ġ= Ġproperties [" kafka _ api "]. toString ()) ĊĊĠĠĠ Ġ// Ġjson Ġsupport ĊĠĠĠ Ġ// Ġhttps :// mvn repository . com / artifact / com . fasterxml . jackson . datatype / jackson - datatype - joda ĊĠĠĠ Ġimplementation ( group Ġ= Ġ" com . fasterxml . jackson . datatype ", Ġname Ġ= Ġ" jackson - datatype - joda ", Ġversion Ġ= Ġproperties [" jackson _ version "]. toString ()) ĊĠĠĠ Ġ// Ġhttps :// mvn repository . com / artifact / com . fasterxml . jackson . module / jackson - module - kotlin ĊĠĠĠ Ġapi ( group Ġ= Ġ" com . fasterxml . jackson . core ", Ġname Ġ= Ġ" jackson - databind ", Ġversion Ġ= Ġproperties [" jackson _ version "]. toString ()) ĊĠĠĠ Ġapi ( group Ġ= Ġ" com . fasterxml . jackson . core ", Ġname Ġ= Ġ" jackson - core ", Ġversion Ġ= Ġproperties [" jackson _ version "]. toString ()) ĊĠĠĠ Ġ// Ġhttps :// mvn repository . com / artifact / com . fasterxml . jackson . module / jackson - module - kotlin ĊĠĠĠ Ġapi ( group Ġ= Ġ" com . fasterxml . jackson . module ", Ġname Ġ= Ġ" jackson - module - kotlin ", Ġversion Ġ= Ġproperties [" jackson _ version "]. toString ()) ĊĠĠĠ Ġimplementation (" joda - time : joda - time :${ properties [" j od atime _ version "] }") Ċ } Ċ Ċ java Ġ{ ĊĠĠĠ Ġsource Compatibility Ġ= ĠJava Version . VERSION _ 1 _ 8 ĊĠĠĠ Ġtarget Compatibility Ġ= ĠJava Version . VERSION _ 1 _ 8 Ċ } Ċ Ċ tasks . with Type < org . jetbrains . kotlin . gradle . tasks . Kotlin Compile > Ġ{ ĊĠĠĠ Ġkotlin Options Ġ{ ĊĠĠĠĠĠĠĠ Ġj vm Target Ġ= ĠJava Version . VERSION _ 1 _ 8 . toString () ĊĠĠĠ Ġ} Ċ } Ċ Ċ repositories Ġ{ ĊĠĠĠ Ġmaven Central () Ċ } Ċ Ċ publishing Ġ{ ĊĠĠĠ Ġrepositories . maven (" https :// api . bin tray . com / maven / icer ock dev / backend / kafka - service /; publish = 1 ") Ġ{ ĊĠĠĠĠĠĠĠ Ġname Ġ= Ġ" bin tray " ĊĊĠĠĠĠĠĠĠ Ġcredentials Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġusername Ġ= ĠSystem . getProperty (" BIN TR AY _ USER ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġpassword Ġ= ĠSystem . getProperty (" BIN TR AY _ KEY ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠĠĠ Ġpublications Ġ{ ĊĠĠĠĠĠĠĠ Ġregister (" maven Java ", ĠMaven Publication :: class ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġfrom ( components [" java "]) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġartifact ( sources Jar . get ()) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ