import Ġorg . jetbrains . kotlin . gradle . tasks . Kotlin Compile Ċ Ċ plugins Ġ{ Ċ ĉ kotlin (" jvm ") Ċ ĉ ` maven - publish ` Ċ } Ċ Ċ group Ġ= Ġ" jp . fun make " Ċ version Ġ= ĠConfiguration . Versions . current Ċ java . source Compatibility Ġ= ĠJava Version . VERSION _ 1 _ 8 Ċ Ċ repositories Ġ{ Ċ ĉ maven Central () Ċ ĉ maven Ġ{ Ġurl Ġ= Ġuri (" https :// repo . spring . io / milestone ") Ġ} Ċ } Ċ Ċ dependencies Ġ{ Ċ ĉ implementation (" org . jetbrains . kotlin : kotlin - reflect ") Ċ ĉ implementation (" org . jetbrains . kotlin : kotlin - stdlib - jdk 8 ") ĊĊ ĉ api (" org . springframework : spring - context :${ Configuration . Versions . spring }") Ċ ĉ api (" org . springframework : spring - web flux :${ Configuration . Versions . spring }") Ċ ĉ api (" com . squareup . ret rofit 2 : ret rofit :${ Configuration . Versions . ret rofit }") Ċ } Ċ Ċ tasks . with Type < Kotlin Compile > Ġ{ Ċ ĉ kotlin Options Ġ{ Ċĉ ĉ free Compiler Args Ġ= ĠlistOf ("- X js r 3 0 5 = strict ", Ġ"- X opt - in = kotlin . Requires Opt In ") Ċĉ ĉ jvm Target Ġ= Ġ" 1 . 8 " Ċ ĉ } Ċ } Ċ Ċ publishing Ġ{ Ċ ĉ publications Ġ{ Ċĉ ĉ create < Maven Publication >(" maven ") Ġ{ Ċĉĉ ĉ groupId Ġ= Ġproject . group Ġas ĠString Ċĉĉ ĉ artifactId Ġ= Ġroot Project . name Ċĉĉ ĉ version Ġ= Ġproject . version Ġas ĠString Ċĉĉ ĉ from ( components [" java "]) ĊĊĉĉ ĉ pom Ġ{ Ċĉĉĉ ĉ inception Year . set (" 2 0 2 0 ") Ċĉĉĉ ĉ name . set ( root Project . name ) Ċĉĉĉ ĉ description . set (" Ret rofit Ġannotation Ġadapter Ġfor ĠSpring Ġframework .") Ċĉĉĉ ĉ licenses Ġ{ Ċĉĉĉĉ ĉ license Ġ{ Ċĉĉĉĉĉ ĉ name . set (" Apache ĠLicense , ĠVersion Ġ 2 . 0 ") Ċĉĉĉĉĉ ĉ url . set (" https :// www . apache . org / licenses / LICENSE - 2 . 0 . txt ") Ċĉĉĉĉĉ ĉ distribution . set (" repo ") Ċĉĉĉĉ ĉ } Ċĉĉĉ ĉ } Ċĉĉ ĉ } Ċĉ ĉ } Ċ ĉ } Ċ ĉ repositories Ġ{ Ċĉ ĉ maven Ġ{ Ċĉĉ ĉ name Ġ= Ġ" Release Dir " Ċĉĉ ĉ url Ġ= Ġuri (" file :${ root Project . project Dir }/ release ") Ċĉ ĉ } Ċ ĉ } Ċ }