import Ġorg . jetbrains . kotlin . gradle . tasks . Kotlin Compile Ċ Ċ val Ġk tor Version Ġ= Ġproject . properties [" ktor Version "] Ġas ĠString Ċ val Ġcor outines Version Ġ= Ġproject . properties [" coroutines Version "] Ġas ĠString Ċ val Ġs lf 4 j Version Ġ= Ġproject . properties [" slf 4 j Version "] Ġas ĠString Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġkotlin (" jvm ") Ġversion Ġ" 1 . 5 . 2 1 " ĊĠĠĠ Ġ` java - library ` ĊĠĠĠ Ġ` maven - publish ` Ċ } Ċ Ċ group Ġ= Ġ" me . m aya . re vol t " Ċ version Ġ= Ġ" 0 . 2 . 0 " Ċ Ċ repositories Ġ{ ĊĠĠĠ Ġmaven Central () Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġ// Ġimplementation ( kotlin (" stdlib ")) ĊĠĠĠ Ġimplementation ( kotlin (" reflect ")) ĊĊĠĠĠ Ġimplementation (" io . ktor ", Ġ" ktor - client - core ", Ġk tor Version ) ĊĠĠĠ Ġimplementation (" io . ktor ", Ġ" ktor - client - c io ", Ġk tor Version ) ĊĠĠĠ Ġimplementation (" io . ktor ", Ġ" ktor - client - logging ", Ġk tor Version ) ĊĠĠĠ Ġimplementation (" io . ktor ", Ġ" ktor - utils ", Ġk tor Version ) ĊĠĠĠ Ġimplementation (" io . ktor ", Ġ" ktor - http ", Ġk tor Version ) ĊĊĠĠĠ Ġimplementation (" org . jetbrains . kotlin x ", Ġ" kotlin x - coroutines - core ", Ġcor outines Version ) ĊĊĠĠĠ Ġimplementation (" org . slf 4 j ", Ġ" slf 4 j - api ", Ġs lf 4 j Version ) ĊĠĠĠ Ġ// Ġimplementation (" org . slf 4 j ", Ġ" slf 4 j - simple ", Ġs lf 4 j Version ) ĊĊĠĠĠ Ġimplementation (" io . az am . ul id j ", Ġ" ul id j ", Ġ" 1 . 0 . 0 ") ĊĊĠĠĠ Ġimplementation ( files (". \\ libs \\ Json Kt _ mpp - jvm - 1 . 0 - SNAPSHOT . jar ")) Ċ } Ċ Ċ configure < Java Plugin Extension > Ġ{ ĊĠĠĠ Ġsource Compatibility Ġ= ĠJava Version . VERSION _ 1 _ 8 Ċ } Ċ Ċ java Ġ{ ĊĠĠĠ Ġwith Sources Jar () Ċ } Ċ Ċ tasks Ġ{ ĊĠĠĠ Ġwith Type < Kotlin Compile > Ġ{ ĊĠĠĠĠĠĠĠ Ġkotlin Options . jvm Target Ġ= Ġ" 1 . 8 " ĊĠĠĠĠĠĠĠ Ġkotlin Options . free Compiler Args Ġ= ĠlistOf ("- X opt - in = kotlin x . coroutines . Del icate Cor outines Api ", Ġ"- X opt - in = kotlin . time . Experimental Time ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġjar Ġ{ ĊĠĠĠĠĠĠĠ Ġmanifest Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġattributes ( map Of (" Implementation Title " Ġto Ġproject . name , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" Implementation - Version " Ġto Ġproject . version )) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ Ċ val Ġfat Jar Ġby Ġtasks . creating ( Jar :: class ) Ġ{ ĊĠĠĠ Ġarchive Classifier . set (" full ") ĊĠĠĠ Ġgroup Ġ= ĠJava Base Plugin . BUILD _ TASK _ NAME ĊĠĠĠ Ġduplicates Strategy Ġ= ĠD uplicates Strategy . EXCL UDE ĊĠĠĠ Ġdescription Ġ= Ġ" T akes Ġall Ġdependencies " ĊĠĠĠ Ġexclude (" ** /*. kotlin _ metadata ") ĊĠĠĠ Ġfrom ( configurations . runtime Classpath . get (). map Ġ{ Ġif Ġ( it . isDirectory ) Ġit Ġelse Ġzip Tree ( it ) Ġ}) ĊĠĠĠ Ġwith ( tasks [" jar "] Ġas ĠCopy Spec ) Ċ } Ċ Ċ publishing Ġ{ ĊĠĠĠ Ġpublications Ġ{ ĊĠĠĠĠĠĠĠ Ġcreate < Maven Publication >(" default ") Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġfrom ( components [" java "]) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġartifact ( fat Jar ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠĠĠ Ġrepositories Ġ{ ĊĠĠĠĠĠĠĠ Ġmaven Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġurl Ġ= Ġuri (" G :\\ Programming \\ Kotlin \\ Re vol t \\ build Repo ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ Ċ tasks . wrapper Ġ{ ĊĠĠĠ Ġgradle Version Ġ= Ġ" 7 . 2 " Ċ } Ċ