import Ġio . pap erm c . paper weight . tasks . Rem ap Jar Ċ import Ġio . pap erm c . paper weight . util . Constants Ċ import Ġio . pap erm c . paper weight . util . register ing Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġid (" com . github . john ren gel man . shadow ") Ġversion Ġ" 7 . 0 . 0 " ĊĠĠĠ Ġid (" io . pap erm c . paper weight . patch er ") Ġversion Ġ" 1 . 1 . 7 " ĊĠĠĠ Ġid (" net . mine cre ll . plugin - yml . bukkit ") Ġversion Ġ" 0 . 4 . 0 " ĊĠĠĠ Ġid (" xyz . j pen illa . run - paper ") Ġversion Ġ" 1 . 0 . 3 " Ċ } Ċ Ċ val Ġmo j ang Mapped Server : ĠConfiguration Ġby Ġconfigurations . creating Ċ configurations . compile Only Ġ{ ĊĠĠĠ Ġextends From ( moj ang Mapped Server ) Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġimplementation ( project (": pl 3 x map - api ")) ĊĠĠĠ Ġval Ġcloud Version Ġ= Ġ" 1 . 5 . 0 " ĊĠĠĠ Ġimplementation (" cloud . command framework ", Ġ" cloud - paper ", Ġcloud Version ) ĊĠĠĠ Ġimplementation (" cloud . command framework ", Ġ" cloud - minecraft - extras ", Ġcloud Version ) ĊĠĠĠ Ġimplementation (" net . ky ori ", Ġ" ad venture - text - min ime ssage ", Ġ" 4 . 1 . 0 - SNAPSHOT ") ĊĠĠĠ Ġimplementation (" io . under tow ", Ġ" under tow - core ", Ġ" 2 . 2 . 3 . Final ") ĊĠĠĠ Ġimplementation (" org . b stats ", Ġ" b stats - bukkit ", Ġ" 2 . 2 . 1 ") ĊĠĠĠ Ġmo j ang Mapped Server (" io . pap erm c . paper ", Ġ" paper ", Ġ" 1 . 1 7 . 1 - R 0 . 1 - SNAPSHOT ", Ġclassifier Ġ= Ġ" moj ang - mapped ") ĊĠĠĠ Ġre mapper (" org . qu ilt mc ", Ġ" tiny - re mapper ", Ġ" 0 . 4 . 1 ") Ċ } Ċ Ċ tasks Ġ{ ĊĠĠĠ Ġshadow Jar Ġ{ ĊĠĠĠĠĠĠĠ Ġarchive FileName . set ("${ root Project . name }-${ root Project . version }- moj ang - mapped . jar ") ĊĠĠĠĠĠĠĠ Ġarchive Classifier . set (" moj ang - mapped ") ĊĠĠĠĠĠĠĠ Ġfrom ( root Project . project Dir . resolve (" LICENSE ")) ĊĠĠĠĠĠĠĠ Ġminimize Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġexclude Ġ{ Ġit . moduleName Ġ== Ġ" pl 3 x map - api " Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġexclude ( dependency (" io . under tow : .* : .* ")) Ġ// Ġdoes Ġnot Ġlike Ġbeing Ġminim ized Ġ_ or _ Ġre located Ġ( x nio Ġerrors ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ ĠlistOf ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" cloud . command framework ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" io . le ang en . ge anty ref ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" net . ky ori . ad venture . text . min ime ssage ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" org . b stats " ĊĠĠĠĠĠĠĠ Ġ). forEach Ġ{ Ġre locate ( it , Ġ"${ root Project . group }. plugin . lib .$ it ") Ġ} ĊĠĠĠ Ġ} ĊĠĠĠ Ġval Ġproduction Mapped Jar Ġby Ġregistering < Rem ap Jar > Ġ{ ĊĠĠĠĠĠĠĠ Ġinput Jar . set ( shadow Jar . flatMap Ġ{ Ġit . archive File Ġ}) ĊĠĠĠĠĠĠĠ Ġoutput Jar . set ( project . layout . build Directory . file (" libs /${ root Project . name }-${ root Project . version }. jar ")) ĊĠĠĠĠĠĠĠ Ġmappings File . set ( project . layout . project Directory . file (" moj ang + yarn - sp ig ot - re ob f - patched . tiny ")) ĊĠĠĠĠĠĠĠ Ġfrom Namespace . set ( Constants . DE OB F _ NAMESPACE ) ĊĠĠĠĠĠĠĠ Ġto Namespace . set ( Constants . SPI G OT _ NAMESPACE ) ĊĠĠĠĠĠĠĠ Ġre mapper . from ( project . configurations . re mapper ) ĊĠĠĠĠĠĠĠ Ġremap Classpath . from ( moj ang Mapped Server ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġbuild Ġ{ ĊĠĠĠĠĠĠĠ Ġdepends On ( production Mapped Jar ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġrun Server Ġ{ ĊĠĠĠĠĠĠĠ Ġm inecraft Version (" 1 . 1 7 . 1 ") ĊĠĠĠĠĠĠĠ Ġplugin J ars . from ( production Mapped Jar . flatMap Ġ{ Ġit . output Jar Ġ}) ĊĠĠĠ Ġ} Ċ } Ċ Ċ run Paper Ġ{ ĊĠĠĠ Ġdisable Plugin Jar Detection () Ċ } Ċ Ċ bukkit Ġ{ ĊĠĠĠ Ġmain Ġ= Ġ" net . pl 3 x . map . plugin . Pl 3 x Map Plugin " ĊĠĠĠ Ġname Ġ= Ġroot Project . name ĊĠĠĠ ĠapiVersion Ġ= Ġ" 1 . 1 7 " ĊĠĠĠ Ġwebsite Ġ= Ġproject . property (" github Url ") Ġas ĠString ĊĠĠĠ Ġauthors Ġ= ĠlistOf (" B illy Gal bre ath ", Ġ" jmp ") Ċ } Ċ