import Ġorg . apache . tools . ant . filters . Replace Tokens Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġjava Ċ } Ċ Ċ group Ġ= Ġ" net . square " Ċ version Ġ= Ġproject . property (" project . version ") !! Ċ description Ġ= Ġ" Vis age " Ċ Ċ repositories Ġ{ ĊĠĠĠ Ġmaven Local () ĊĠĠĠ Ġmaven (" https :// jit pack . io ") ĊĠĠĠ Ġmaven (" https :// repo . square code . de / repository / vis age /") ĊĠĠĠ Ġmaven (" https :// repo . square code . de / repository / f unk em unky /") ĊĠĠĠ Ġmaven (" https :// repo . dm ul loy 2 . net / nexus / repository / public /") ĊĠĠĠ Ġmaven (" https :// repo . maven . apache . org / maven 2 /") Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġcompile Only (" org . project lo mbok : lo mbok : 1 . 1 8 . 1 0 ") ĊĠĠĠ Ġannotation Processor (" org . project lo mbok : lo mbok : 1 . 1 8 . 1 0 ") ĊĠĠĠ Ġcompile Only (" org . sp ig ot mc : sp ig ot : 1 . 8 . 8 ") ĊĠĠĠ Ġcompile Only (" cc . f unk em unky . plugins : Atlas : 1 . 8 . 3 . 1 ") Ċ } Ċ Ċ java . source Compatibility Ġ= ĠJava Version . VERSION _ 1 _ 8 Ċ Ċ tasks . with Type < Java Compile > Ġ{ ĊĠĠĠ Ġoptions . encoding Ġ= Ġ" UTF - 8 " Ċ } Ċ Ċ tasks . with Type < Jar > Ġ{ ĊĠĠĠ Ġval Ġoutput DirectoryPath Ġ= ĠSystem . getProperty (" output . directory ") ĊĠĠĠ Ġif Ġ( output DirectoryPath Ġ!= Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠ Ġdestination Directory . set ( file ( output DirectoryPath )) ĊĠĠĠ Ġ} Ċ } Ċ Ċ tasks . with Type < Process Resources > Ġ{ ĊĠĠĠ Ġthis . filter < Replace Tokens >( ĊĠĠĠĠĠĠĠ Ġ" tokens " Ġto Ġmap Of (" project . version " Ġto Ġproject . property (" project . version ") !! ) ĊĠĠĠ Ġ) Ċ }