import Ġorg . cad ix dev . lo ren z . io . Mapping Formats Ċ import Ġorg . cad ix dev . lo ren z . io . Mappings Reader Ċ import Ġorg . cad ix dev . lo ren z . io . Mappings Writer Ċ import Ġjava . io . InputStream Ċ import Ġjava . io . OutputStream Ċ import Ġjava . io . Reader Ċ import Ġjava . io . Writer Ċ import Ġjava . util . Optional Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġjava ĊĠĠĠ Ġid (" net . mine cre ll . lic en ser ") Ġversion Ġ" 0 . 4 . 1 " ĊĠĠĠ Ġid (" net . mine cre ll . git patch er ") Ġversion Ġ" 0 . 9 . 0 " Ġ// ĠBecause Ġwe Ġmodify ĠSp onge Common Ġbuild Ġscripts Ġfor Ġrem apping Ċ } Ċ Ċ apply ( plugin Ġ= Ġ" net . mine cre ll . lic en ser ") Ċ Ċ group Ġ= Ġ" me . i 5 0 9 " Ċ version Ġ= Ġ" 1 . 0 " Ċ Ċ repositories Ġ{ ĊĠĠĠ Ġmaven Central () ĊĠĠĠ Ġmaven (" https :// oss . son atype . org / content / groups / public ") Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . name Ġ= Ġ" Son atype ĠO SS " ĊĠĠĠ Ġ} ĊĠĠĠ Ġmaven (" http :// maven . fabric mc . net ") Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . name Ġ= Ġ" Fabric " ĊĠĠĠ Ġ} ĊĠĠĠ Ġmaven (" https :// oss . son atype . org / content / repositories / snapshots /") Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . name Ġ= Ġ" Son atype ĠSnapshot s " ĊĠĠĠ Ġ} ĊĠĠĠ Ġmaven (" https :// files . minecraftforge . net / maven ") Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . name Ġ= Ġ" Minecraft Forge " ĊĠĠĠ Ġ} ĊĠĠĠ Ġmaven (" https :// repo - new . spongepowered . org / repository / maven - public ") Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . name Ġ= Ġ" New ĠSp onge " ĊĠĠĠ Ġ} ĊĠĠĠ Ġmaven (" https :// repo . spongepowered . org / maven ") Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . name Ġ= Ġ" Sp onge " ĊĠĠĠ Ġ} Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġimplementation (" org . cad ix dev ", Ġ" lo ren z ", Ġ" 0 . 5 . 2 ") ĊĠĠĠ Ġimplementation (" net . fabric mc : tiny - mappings - parser : 0 . 3 . 0 + build . 1 7 ") ĊĠĠĠ Ġimplementation (" net . fabric mc : lo ren z - tiny : 2 . 0 . 0 + build . 2 ") Ċ } Ċ Ċ configure < Java Plugin Convention > Ġ{ ĊĠĠĠ Ġsource Compatibility Ġ= ĠJava Version . VERSION _ 1 _ 8 Ċ } Ċ Ċ license Ġ{ ĊĠĠĠ Ġheader Ġ= Ġfile (" LICENSE . txt ") ĊĊĠĠĠ Ġinclude (" **. java ") ĊĠĠĠ Ġnew Line Ġ= Ġtrue Ċ } Ċ Ċ patches Ġ{ ĊĠĠĠ Ġsubmodule Ġ= Ġ" upstream " ĊĠĠĠ Ġtarget Ġ= Ġfile (" Pat ched Sp onge Common ") ĊĠĠĠ Ġpatches Ġ= Ġfile (" patches ") Ċ } Ċ Ċ task < Rem ap Sp onge Common Task >(" remap Common ") Ġ{ ĊĠĠĠ Ġthis . group Ġ= Ġ" rem apping " Ċ } Ċ Ċ task < Generate S rg To Inter medi ary Task >(" generate S rg To Inter medi ary ") Ġ{ ĊĠĠĠ Ġthis . format Ġ= ĠMapping Formats . T SR G ĊĠĠĠ Ġthis . output Name Ġ= Ġ" s rg To Inter medi ary . ts rg " Ċ } Ċ Ċ task < Generate S rg To Inter medi ary Task >(" generate Tiny S rg To Inter medi ary ") Ġ{ ĊĠĠĠ Ġthis . format Ġ= ĠWrit able Tiny Format ĊĠĠĠ Ġthis . output Name Ġ= Ġ" s rg To Inter medi ary . tiny " Ċ } Ċ Ċ task < Generate Inter medi ary To M cp Mappings Task >(" generate Inter medi ary To M cp ") Ġ{ ĊĠĠĠ Ġthis . format Ġ= ĠWrit able Tiny Format ĊĠĠĠ Ġthis . output Name Ġ= Ġ" inter medi ary To M cp . tiny " Ċ } Ċ Ċ object ĠWrit able Tiny Format Ġ: Ġorg . cad ix dev . lo ren z . io . Text Mapping Format Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġcreate Writer ( writer : ĠWriter ?): ĠM appings Writer Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠTiny V 2 Mappings Writer ( writer , Ġ" named ", Ġ" inter medi ary ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Standard File Extension (): ĠOptional < String > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠOptional . of (". tiny ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġcreate Reader ( reader : ĠReader ?): ĠM appings Reader Ġ{ ĊĠĠĠĠĠĠĠ Ġthrow ĠUnsupportedOperationException (" Use Ġnormal Ġtiny Ġreader ") ĊĠĠĠ Ġ} Ċ } Ċ