import Ġorg . jetbrains . kotlin . gradle . tasks . Kotlin Compile Ċ Ċ val Ġoutput Dir Ġ= Ġ" D :/ Steam Library / steam apps / common / S lay The Sp ire / mods " Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġkotlin (" jvm ") Ġversion Ġ" 1 . 3 . 5 0 " ĊĠĠĠ Ġjava Ċ } Ċ Ċ group Ġ= Ġ" uno . reb elli ous " Ċ version Ġ= Ġ" 1 . 0 - SNAPSHOT " Ċ Ċ repositories Ġ{ ĊĠĠĠ Ġmaven Central () Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġimplementation ( kotlin (" stdlib - jdk 8 ")) ĊĠĠĠ Ġimplementation (" com . squareup . okhttp 3 : okhttp : 4 . 4 . 0 ") ĊĠĠĠ Ġimplementation ( file Tree (" lib ")) Ċ } Ċ Ċ tasks . with Type < Kotlin Compile > Ġ{ ĊĠĠĠ Ġkotlin Options . jvm Target Ġ= Ġ" 1 . 8 " Ċ } Ċ Ċ tasks . register < Copy >(" copy Jar To Location ") Ġ{ ĊĠĠĠ Ġprintln (" Copy ") ĊĠĠĠ Ġdepends On (" fat Jar ") ĊĠĠĠ Ġfrom ( file ("/ build / libs / Sp ire Master - fat -$ version . jar ")) ĊĠĠĠ Ġinto ( output Dir ) Ċ } Ċ Ċ tasks . register < Jar >(" fat Jar ") Ġ{ ĊĠĠ Ġbase Name Ġ= Ġ"${ project . name }- fat " ĊĠĠĠ Ġdepends On (" build ") ĊĠĠĠ Ġfrom ( configurations . runtime Classpath . get () ĊĠĠĠĠĠĠĠ Ġ. filter Ġ{ it . name . toLowerCase () Ġ! in ĠarrayOf (" Base Mod . jar ", Ġ" desktop - 1 . 0 . jar ", Ġ" Mod The Sp ire . jar ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. map Ġ{ it . toLowerCase ()} ĊĠĠĠĠĠĠĠ Ġ}. map Ġ{ Ġif Ġ( it . isDirectory ) Ġit Ġelse Ġzip Tree ( it ) Ġ}) ĊĠĠĠ Ġwith ( tasks . jar . get () Ġas ĠCopy Spec ) Ċ Ċ }