import Ġcom . github . jen gel man . gradle . plugins . shadow . tasks . Shadow Jar Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġjava ĊĠĠĠ Ġ` maven - publish ` ĊĠĠĠ Ġid (" com . github . john ren gel man . shadow ") Ġversion Ġ" 7 . 1 . 0 " Ċ } Ċ Ċ repositories Ġ{ ĊĠĠĠ Ġmaven Central () ĊĊĠĠĠ Ġmaven (" https :// hub . sp ig ot mc . org / nexus / content / repositories / snapshots /") ĊĠĠĠ Ġmaven (" https :// oss . son atype . org / content / repositories / snapshots /") ĊĠĠĠ Ġmaven (" https :// repo . code mc . io / repository / maven - public /") ĊĊĠĠĠ Ġmaven (" https :// jit pack . io ") ĊĠĠĠ Ġmaven (" https :// repo . extended clip . com / content / repositories / placeholder api /") Ċ } Ċ Ċ val Ġsp ig ot Version : ĠString Ġby Ġproject Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġval Ġb stats Version : ĠString Ġby Ġproject ĊĊĠĠĠ Ġval Ġplaceholder API Version : ĠString Ġby Ġproject ĊĊĠĠĠ Ġimplementation (" org . sp ig ot mc ", Ġ" sp ig ot - api ", Ġsp ig ot Version ) ĊĊĠĠĠ Ġimplementation (" org . b stats ", Ġ" b stats - bukkit ", Ġb stats Version ) ĊĊĠĠĠ Ġimplementation (" me . clip ", Ġ" placeholder api ", Ġplaceholder API Version ) Ċ } Ċ Ċ tasks . with Type < Process Resources > Ġ{ ĊĠĠĠ Ġinputs . property (" version ", Ġproject . version ) ĊĠĠĠ Ġinputs . property (" sp ig ot Version ", Ġsp ig ot Version ) ĊĊĠĠĠ Ġfiltering Charset Ġ= Ġ" UTF - 8 " ĊĊĠĠĠ Ġfiles Matching (" plugin . yml ") Ġ{ ĊĠĠĠĠĠĠĠ Ġvar ĠapiVersion Ġ= Ġsp ig ot Version . substring Before ('- ') ĊĠĠĠĠĠĠĠ Ġif Ġ( apiVersion . count Ġ{ Ġit Ġ== Ġ'.' Ġ} Ġ> Ġ 1 ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠapiVersion Ġ= ĠapiVersion . substring Before Last ('.') ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġexpand ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" version " Ġto Ġproject . version , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" apiVersion " Ġto ĠapiVersion , ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ tasks . with Type < Shadow Jar > Ġ{ ĊĠĠĠ Ġarchive Classifier . set ("") ĊĊĠĠĠ Ġminimize () ĊĊĠĠĠ Ġexclude (" META - INF /") ĊĊĠĠĠ Ġdependencies Ġ{ ĊĠĠĠĠĠĠĠ Ġinclude ( dependency (" org . b stats :: ")) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġre locate (" org . b stats ", Ġ" de . md 5 l uk as . spl . b stats ") Ċ } Ċ Ċ java . source Compatibility Ġ= ĠJava Version . VERSION _ 1 _ 8 Ċ java . target Compatibility Ġ= Ġjava . source Compatibility Ċ Ċ tasks . with Type < Java Compile >() Ġ{ ĊĊĠĠĠ Ġoptions . encoding Ġ= Ġ" UTF - 8 " Ċ } Ċ