import Ġcom . exp edi ag roup . graphql . plugin . gradle . graphql Ċ import Ġorg . jetbrains . kotlin . gradle . tasks . Kotlin Compile Ċ import Ġorg . gradle . jvm . tasks . Jar Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġkotlin (" jvm ") Ġversion Ġ" 1 . 4 . 2 0 " ĊĠĠĠ Ġid (" application ") ĊĠĠĠ Ġ// id (" com . exp edi ag roup . graphql ") Ġversion Ġ" 3 . 7 . 0 " ĊĠĠĠ Ġid (" com . exp edi ag roup . graphql ") Ġversion Ġ" 4 . 0 . 0 - alpha . 9 " Ċ } Ċ Ċ group Ġ= Ġ" xyz . no ah sc " Ċ version Ġ= Ġ" 1 . 0 - SNAPSHOT " Ċ Ċ application Ġ{ ĊĠĠĠ Ġmain ClassName Ġ= Ġ" slash source graph . App Kt " Ċ } Ċ Ċ graphql Ġ{ ĊĠĠĠ Ġclient Ġ{ ĊĠĠĠĠĠĠĠ Ġendpoint Ġ= Ġ" https :// source graph . com /. api / graphql " ĊĠĠĠĠĠĠĠ ĠpackageName Ġ= Ġ" slash source graph . graphql " ĊĠĠĠĠĠĠĠ Ġquery Files Ġ= ĠlistOf ( file ("${ project . project Dir }/ src / main / resources / query . graphql ")) ĊĠĠĠĠĠĠĠ Ġallow Deprecated Fields Ġ= Ġtrue ĊĠĠĠ Ġ} Ċ } Ċ Ċ tasks . with Type < Kotlin Compile > Ġ{ ĊĠĠĠ Ġkotlin Options . jvm Target Ġ= Ġ" 1 . 8 " Ċ } Ċ Ċ repositories Ġ{ ĊĠĠĠ Ġmaven Central () Ċ } Ċ Ċ kotlin Ġ{ ĊĠĠĠ Ġsource Sets [" main "]. apply Ġ{ ĊĠĠĠĠĠĠĠ Ġkotlin . src Dirs (" src / main / kotlin ", Ġ" build / generated / source / graphql / main ") ĊĠĠĠ Ġ} Ċ } Ċ Ċ val Ġk tor Version Ġ= Ġ" 1 . 3 . 1 " Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġimplementation ( kotlin (" stdlib ")) ĊĠĠĠ Ġimplementation (" com . google . code . gson ", Ġ" gson ", Ġ" 2 . 8 . 6 ") ĊĊĠĠĠ Ġimplementation (" io . ktor : ktor - server - core :$ ktor Version ") ĊĠĠĠ Ġimplementation (" io . ktor : ktor - server - c io :$ ktor Version ") ĊĠĠĠ Ġimplementation (" io . ktor : ktor - gson :$ ktor Version ") ĊĠĠĠ Ġimplementation (" io . ktor : ktor - serialization :$ ktor Version ") ĊĠĠĠ Ġimplementation (" io . ktor : ktor - client - core :$ ktor Version ") ĊĊĠĠĠ Ġ// implementation (" org . slf 4 j : slf 4 j - simple : 1 . 7 . 2 6 ") ĊĠĠĠ Ġimplementation (" ch . qos . log back : log back - classic : 1 . 2 . 3 ") ĊĠĠĠ Ġimplementation (" org . apache . logging . log 4 j : log 4 j - core : 2 . 1 2 . 1 ") ĊĊĠĠĠ Ġimplementation (" com . fasterxml . jackson . module : jackson - module - kotlin : 2 . 1 1 .+ ") ĊĊĠĠĠ Ġimplementation (" com . exp edi ag roup : graphql - kotlin - ktor - client : 4 . 0 . 0 - alpha . 9 ") ĊĊĠĠĠ Ġtest Implementation (" io . ktor : ktor - server - tests :$ ktor Version ") Ċ } Ċ Ċ val Ġfat Jar Ġ= Ġtask (" fat Jar ", Ġtype Ġ= ĠJar :: class ) Ġ{ ĊĠĠĠ Ġarchive FileName . set ( project . name Ġ+ Ġ". jar ") ĊĠĠĠ Ġmanifest Ġ{ ĊĠĠĠĠĠĠĠ Ġattributes [" Main - Class "] Ġ= Ġ" slash source graph . App Kt " ĊĠĠĠ Ġ} ĊĠĠĠ Ġfrom ( configurations . compile Classpath . get (). map Ġ{ Ġif Ġ( it . isDirectory ) Ġit Ġelse Ġzip Tree ( it ) Ġ}) ĊĠĠĠ Ġwith ( tasks [" jar "] Ġas ĠCopy Spec ) Ċ } Ċ Ċ tasks Ġ{ ĊĠĠĠ Ġ" build " Ġ{ ĊĠĠĠĠĠĠĠ Ġdepends On ( fat Jar ) ĊĠĠĠ Ġ} Ċ }