@ file : Suppress (" Un stable Api Usage ") Ċ Ċ import Ġgro ovy . util . FileName Finder Ċ import Ġjava . nio . file . Path Ċ import Ġjava . nio . file . Paths Ċ Ċ enable Feature Preview (" VERSION _ CAT AL O GS ") Ċ Ċ root Project . name Ġ= Ġ" old scape " Ċ Ċ dependency Resolution Management Ġ{ ĊĠĠĠ Ġversion Catalog s Ġ{ ĊĠĠĠĠĠĠĠ Ġcreate (" deps ") Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġversion (" jdk ", Ġ" 1 1 ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġversion (" kotlin ", Ġ" 1 . 5 . 3 0 ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġversion (" serialization ", Ġ" 1 . 2 . 2 ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġversion (" k aml ", Ġ" 0 . 3 5 . 3 ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġversion (" coroutines ", Ġ" 1 . 5 . 2 ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġversion (" netty ", Ġ" 4 . 1 . 6 6 . Final ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġversion (" ex posed ", Ġ" 0 . 3 4 . 1 ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġversion (" postgres ", Ġ" 4 2 . 2 . 1 8 ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġversion (" j age x - store - 5 ", Ġ" 0 . 4 . 0 ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġversion (" j age x - byte buf - ext ", Ġ" 0 . 2 . 0 ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġversion (" class graph ", Ġ" 4 . 8 . 5 3 ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġversion (" kotlin - logging ", Ġ" 2 . 0 . 1 1 ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġversion (" log back ", Ġ" 1 . 2 . 3 ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġversion (" kot est ", Ġ" 5 . 0 . 0 . M 1 ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġversion (" ktor ", Ġ Ġ" 1 . 4 . 0 ") ĊĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" kotlin - reflect "). to (" org . jetbrains . kotlin ", Ġ" kotlin - reflect "). version Ref (" kotlin ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" kotlin - serialization "). to (" org . jetbrains . kotlin x ", Ġ" kotlin x - serialization - core ") ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. version Ref (" serialization ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" kotlin - serialization - json "). to (" org . jetbrains . kotlin x ", Ġ" kotlin x - serialization - json ") ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. version Ref (" serialization ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" kotlin - serialization - yaml "). to (" com . char les k orn . k aml ", Ġ" k aml "). version Ref (" k aml ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" kotlin - coroutines "). to (" org . jetbrains . kotlin x ", Ġ" kotlin x - coroutines - core "). version Ref (" coroutines ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" kotlin - script ing "). to (" org . jetbrains . kotlin ", Ġ" kotlin - script ing - common "). version Ref (" kotlin ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" ktor - server - core "). to (" io . ktor ", Ġ" ktor - server - core "). version Ref (" ktor ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" ktor - client - apache "). to (" io . ktor ", Ġ" ktor - client - apache "). version Ref (" ktor ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" netty - all "). to (" io . netty ", Ġ" netty - all "). version Ref (" netty ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" ex posed - core "). to (" org . jetbrains . ex posed ", Ġ" ex posed - core "). version Ref (" ex posed ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" ex posed - jdbc "). to (" org . jetbrains . ex posed ", Ġ" ex posed - jdbc "). version Ref (" ex posed ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" postgresql "). to (" org . postgresql ", Ġ" postgresql "). version Ref (" postgres ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" j age x - byte buf - ext "). to (" io . g uth ix ", Ġ" j age x - byte buf - extensions "). version Ref (" j age x - byte buf - ext ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" j age x - js 5 "). to (" io . g uth ix ", Ġ" j age x - store - 5 "). version Ref (" j age x - store - 5 ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" class graph "). to (" io . github . class graph ", Ġ" class graph "). version Ref (" class graph ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" kotlin - logging "). to (" io . github . micro utils ", Ġ" kotlin - logging - jvm "). version Ref (" kotlin - logging ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" log back "). to (" ch . qos . log back ", Ġ" log back - classic "). version Ref (" log back ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" kot est - junit "). to (" io . kot est ", Ġ" kot est - runner - junit 5 - jvm "). version Ref (" kot est ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" kot est - assert "). to (" io . kot est ", Ġ" kot est - assertions - core - jvm "). version Ref (" kot est ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġalias (" kot est - property "). to (" io . kot est ", Ġ" kot est - property "). version Ref (" kot est ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ Ċ include (" dim ") Ċ Ċ include (" cache ") Ċ include (" cache : names ") Ċ Ċ include (" server ") Ċ include (" server : wiki ") Ċ include (" server : world ") Ċ include Modules (" server : world : plugins ") Ċ Ċ include (" wiki : parser ") Ċ include (" wiki : downloader ") ĊĊ Ċ fun Ġinclude Modules ( module : ĠString ) Ġ{ ĊĠĠĠ Ġval Ġplugin RelativePath Ġ= Ġmodule . replace (" :", Ġ"/") ĊĠĠĠ Ġval Ġplugin Root Dir : ĠPath Ġ= Ġroot Project . project Dir . to Path (). resolve ( plugin RelativePath ) ĊĠĠĠ Ġif Ġ( plugin Root Dir . to File (). exists ()) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġgradle Build Files Ġ= ĠFileName Finder (). getFile Names ("$ plugin Root Dir ", Ġ"** /*. gradle . k ts ") ĊĠĠĠĠĠĠĠ Ġgradle Build Files . forEach Ġ{ Ġfilename Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġbuild FilePath Ġ= ĠPaths . get ( filename ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġmodule Dir Ġ= Ġbuild FilePath . parent ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġrelative Path Ġ= Ġplugin Root Dir . rel ativ ize ( module Dir ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġplugin Name Ġ= Ġ"$ relative Path ". replace ( File . separator , Ġ": ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġinclude (" :$ module :$ plugin Name ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }