plugins Ġ{ ĊĠĠĠ Ġkotlin (" jvm ") ĊĠĠĠ Ġid (" dev . architect ury . loom ") ĊĠĠĠ Ġid (" architect ury - plugin ") ĊĠĠĠ Ġid (" io . github . ju ux el . loom - qu ilt flower ") ĊĠĠĠ Ġid (" org . j mail en . kot linter ") ĊĠĠĠ Ġid (" com . github . john ren gel man . shadow ") Ċ } Ċ Ċ val Ġshadow Common Ġby Ġconfigurations . creating Ċ Ċ architect ury Ġ{ ĊĠĠĠ Ġplatform Setup Lo om Ide () ĊĠĠĠ Ġfor ge () Ċ } Ċ Ċ loom Ġ{ ĊĠĠĠ Ġaccess W id ener Path . set ( project (": common "). file (" src / main / resources / ad orn . access wid ener ")) ĊĊĠĠĠ Ġfor ge Ġ{ ĊĠĠĠĠĠĠĠ Ġconvert Access W id eners . set ( true ) ĊĠĠĠĠĠĠĠ Ġextra Access W id eners . add (" ad orn . access wid ener ") ĊĠĠĠĠĠĠĠ Ġmixin Configs (" mixins . ad orn . common . json ", Ġ" mixins . ad orn . forge . json ") ĊĠĠĠ Ġ} Ċ } Ċ Ċ repositories Ġ{ ĊĠĠĠ Ġmaven Ġ{ ĊĠĠĠĠĠĠĠ Ġname Ġ= Ġ" kotlin for forge " ĊĠĠĠĠĠĠĠ Ġurl Ġ= Ġuri (" https :// the dark colour . github . io / Kotlin For Forge /") ĊĠĠĠ Ġ} Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġm inecraft (" net . minecraft : minecraft :${ root Project . property (" minecraft - version ") }") ĊĠĠĠ Ġmappings (" net . fabric mc : yarn :${ root Project . property (" minecraft - version ")} + ${ root Project . property (" mappings ") }: v 2 ") ĊĠĠĠ Ġfor ge (" net . minecraftforge : forge :${ root Project . property (" minecraft - version ") }-${ root Project . property (" forge - version ") }") ĊĊĠĠĠ Ġimplementation ( forge Dependencies ( kotlin (" stdlib - jdk 8 ")) !! ) ĊĊĠĠĠ Ġimplementation ( project (": common ", Ġconfiguration Ġ= Ġ" dev ")) Ġ{ ĊĠĠĠĠĠĠĠ Ġis Trans itive Ġ= Ġfalse ĊĠĠĠ Ġ} ĊĠĠĠ Ġ" development Forge "( project (": common ", Ġconfiguration Ġ= Ġ" dev ")) Ġ{ ĊĠĠĠĠĠĠĠ Ġis Trans itive Ġ= Ġfalse ĊĠĠĠ Ġ} ĊĠĠĠ Ġshadow Common ( project ( path Ġ= Ġ": common ", Ġconfiguration Ġ= Ġ" transform Production Forge ")) Ġ{ ĊĠĠĠĠĠĠĠ Ġis Trans itive Ġ= Ġfalse ĊĠĠĠ Ġ} Ċ } Ċ Ċ kot linter Ġ{ ĊĠĠĠ Ġdisabled Rules Ġ= ĠarrayOf (" parameter - list - wrapping ") Ċ } Ċ Ċ tasks Ġ{ ĊĠĠĠ Ġshadow Jar Ġ{ ĊĠĠĠĠĠĠĠ Ġarchive Classifier . set (" dev - shadow ") ĊĠĠĠĠĠĠĠ Ġconfigurations Ġ= ĠlistOf ( shadow Common ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġremap Jar Ġ{ ĊĠĠĠĠĠĠĠ Ġdepends On ( shadow Jar ) ĊĠĠĠĠĠĠĠ Ġarchive Classifier . set (" forge ") ĊĠĠĠĠĠĠĠ Ġinput . set ( shadow Jar . flatMap Ġ{ Ġit . archive File Ġ}) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprocess Resources Ġ{ ĊĠĠĠĠĠĠĠ Ġinputs . property (" version ", Ġproject . version ) ĊĊĠĠĠĠĠĠĠ Ġfiles Matching (" META - INF / mods . toml ") Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġexpand (" version " Ġto Ġproject . version ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ