import Ġnet . ky ori . ind ra . git . Ind ra Git Extension Ċ import Ġnet . ky ori . b loss om . B loss om Extension Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġid (" net . ky ori . b loss om ") ĊĠĠĠ Ġid (" net . ky ori . ind ra . git ") Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġapi ( projects . ge y ser Api ) ĊĠĠĠ Ġapi ( projects . common ) ĊĊĠĠĠ Ġ// ĠJack son ĠJSON Ġand ĠYAML Ġserialization ĊĠĠĠ Ġapi (" com . fasterxml . jackson . core ", Ġ" jackson - annotations ", ĠVersions . jackson Version ) ĊĠĠĠ Ġapi (" com . fasterxml . jackson . core ", Ġ" jackson - databind ", ĠVersions . jackson Version ) ĊĠĠĠ Ġapi (" com . fasterxml . jackson . data format ", Ġ" jackson - data format - yaml ", ĠVersions . jackson Version ) ĊĠĠĠ Ġapi (" com . google . gu ava ", Ġ" gu ava ", ĠVersions . gu ava Version ) ĊĊĠĠĠ Ġapi (" com . n uk kit x ", Ġ" nbt ", ĠVersions . nbt Version ) ĊĊĠĠĠ Ġ// ĠFast util ĠMaps ĊĠĠĠ Ġimplementation (" com . n uk kit x . fast util ", Ġ" fast util - int - int - maps ", ĠVersions . fast util Version ) ĊĠĠĠ Ġimplementation (" com . n uk kit x . fast util ", Ġ" fast util - int - long - maps ", ĠVersions . fast util Version ) ĊĠĠĠ Ġimplementation (" com . n uk kit x . fast util ", Ġ" fast util - int - byte - maps ", ĠVersions . fast util Version ) ĊĠĠĠ Ġimplementation (" com . n uk kit x . fast util ", Ġ" fast util - int - boolean - maps ", ĠVersions . fast util Version ) ĊĠĠĠ Ġimplementation (" com . n uk kit x . fast util ", Ġ" fast util - object - int - maps ", ĠVersions . fast util Version ) ĊĠĠĠ Ġimplementation (" com . n uk kit x . fast util ", Ġ" fast util - object - object - maps ", ĠVersions . fast util Version ) ĊĊĠĠĠ Ġ// ĠNetwork Ġlibraries ĊĠĠĠ Ġimplementation (" org . java - websocket ", Ġ" Java - WebSocket ", ĠVersions . websocket Version ) ĊĊĠĠĠ Ġapi (" com . github . Cloud burst MC . Protocol ", Ġ" bed rock - v 4 8 6 ", ĠVersions . protocol Version ) Ġ{ ĊĠĠĠĠĠĠĠ Ġexclude (" com . n uk kit x . network ", Ġ" r ak net ") ĊĠĠĠĠĠĠĠ Ġexclude (" com . n uk kit x ", Ġ" nbt ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġapi (" com . github . G ey ser MC ", Ġ" MC Auth Lib ", ĠVersions . mca uth lib Version ) ĊĠĠĠ Ġapi (" com . github . G ey ser MC ", Ġ" MC Protocol Lib ", ĠVersions . mc protocol lib version ) Ġ{ ĊĠĠĠĠĠĠĠ Ġexclude (" com . github . G ey ser MC ", Ġ" packet lib ") ĊĠĠĠĠĠĠĠ Ġexclude (" com . github . G ey ser MC ", Ġ" mca uth lib ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġapi (" com . github . ste ve ice 1 0 ", Ġ" packet lib ", ĠVersions . packet lib Version ) Ġ{ ĊĠĠĠĠĠĠĠ Ġexclude (" io . netty ", Ġ" netty - all ") ĊĠĠĠĠĠĠĠ Ġ// ĠThis Ġis Ġstill Ġexperimental Ġ- Ġaddition ally , Ġit Ġcould Ġonly Ġreally Ġbenefit Ġstandalone ĊĠĠĠĠĠĠĠ Ġexclude (" io . netty . incubator ", Ġ" netty - incubator - transport - native - io _ uring ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġimplementation (" com . n uk kit x . network ", Ġ" r ak net ", ĠVersions . r ak net Version ) Ġ{ ĊĠĠĠĠĠĠĠ Ġexclude (" io . netty ", Ġ"* "); ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġimplementation (" io . netty ", Ġ" netty - resolver - dns ", ĠVersions . netty Version ) ĊĠĠĠ Ġimplementation (" io . netty ", Ġ" netty - resolver - dns - native - macos ", ĠVersions . netty Version , Ġnull , Ġ" osx - x 8 6 _ 6 4 ") ĊĠĠĠ Ġimplementation (" io . netty ", Ġ" netty - codec - haproxy ", ĠVersions . netty Version ) ĊĊĠĠĠ Ġ// ĠNetwork Ġdependencies Ġwe Ġare Ġupdating Ġourselves ĊĠĠĠ Ġapi (" io . netty ", Ġ" netty - handler ", ĠVersions . netty Version ) ĊĊĠĠĠ Ġimplementation (" io . netty ", Ġ" netty - transport - native - ep oll ", ĠVersions . netty Version , Ġnull , Ġ" linux - x 8 6 _ 6 4 ") ĊĠĠĠ Ġimplementation (" io . netty ", Ġ" netty - transport - native - ep oll ", ĠVersions . netty Version , Ġnull , Ġ" linux - aarch _ 6 4 ") ĊĠĠĠ Ġimplementation (" io . netty ", Ġ" netty - transport - native - k queue ", ĠVersions . netty Version , Ġnull , Ġ" osx - x 8 6 _ 6 4 ") ĊĊĠĠĠ Ġ// ĠAd venture Ġtext Ġserialization ĊĠĠĠ Ġimplementation (" net . ky ori ", Ġ" ad venture - text - serializer - legacy ", ĠVersions . ad venture Version ) ĊĠĠĠ Ġimplementation (" net . ky ori ", Ġ" ad venture - text - serializer - plain ", ĠVersions . ad venture Version ) ĊĊĠĠĠ Ġ// ĠK y ori ĠMisc ĊĠĠĠ Ġimplementation (" net . ky ori ", Ġ" event - api ", ĠVersions . event Version ) ĊĊĠĠĠ Ġ// ĠTest ĊĠĠĠ Ġtest Implementation (" junit ", Ġ" junit ", ĠVersions . junit Version ) ĊĊĠĠĠ Ġ// ĠAnnotation ĠProcess ors ĊĠĠĠ Ġcompile Only ( projects . ap ) ĊĊĠĠĠ Ġannotation Processor ( projects . ap ) Ċ } Ċ Ċ configure < B loss om Extension > Ġ{ ĊĠĠĠ Ġval Ġind ra Ġ= Ġthe < Ind ra Git Extension >() ĊĊĠĠĠ Ġval Ġmain File Ġ= Ġ" src / main / java / org / ge y ser mc / ge y ser / G ey ser Impl . java " ĊĠĠĠ Ġval Ġgit Version Ġ= Ġ" git -${ branch Name ()} -${ ind ra . commit ()?. name ?. substring ( 0 , Ġ 7 ) Ġ?: Ġ" 0 0 0 0 0 0 0 "} " ĊĊĠĠĠ Ġreplace Token ("\ ${ version }", Ġ"${ project . version } Ġ($ git Version )", Ġmain File ) ĊĠĠĠ Ġreplace Token ("\ ${ git Version }", Ġgit Version , Ġmain File ) ĊĠĠĠ Ġreplace Token ("\ ${ build Number }", Ġbuild Number (), Ġmain File ) ĊĠĠĠ Ġreplace Token ("\ ${ branch }", Ġbranch Name (), Ġmain File ) Ċ } Ċ Ċ fun ĠProject . branch Name (): ĠString Ġ= ĊĠĠĠĠĠĠĠ ĠSystem . getenv (" GIT _ BRANCH ") Ġ?: Ġ" local / dev " Ċ Ċ fun ĠProject . build Number (): ĠInt Ġ= ĊĠĠĠ ĠInteger . parseInt ( System . getenv (" BUILD _ NUMBER ") Ġ?: Ġ"- 1 ")