plugins Ġ{ Ċ ĉ id (" io . gitlab . art urb os ch . de te kt ") Ċ ĉ ` build - scan ` Ċ ĉ id (" com . diff plug . gradle . spot less ") Ċ ĉ id (" org . jetbrains . dok ka ") Ċ ĉ kotlin (" jvm ") Ċ } Ċ Ċ root Project . description Ġ= Ġ" Living Doc " Ċ Ċ build Scan Ġ{ Ċ ĉ terms Of Service Url Ġ= Ġ" https :// gradle . com / terms - of - service " Ċ ĉ terms Of Service Ag ree Ġ= Ġ" yes " Ċ } Ċ Ċ val Ġliving doc Java Projects Ġby Ġextra ( Ċ ĉ listOf ( Ċĉ ĉ project (": living doc - api "), Ċĉ ĉ project (": living doc - documentation ") Ċ ĉ ) Ċ ) Ċ Ċ val Ġliving doc Kotlin Projects Ġby Ġextra ( Ċ ĉ listOf ( Ċĉ ĉ project (": living doc - config "), Ċĉ ĉ project (": living doc - converters "), Ċĉ ĉ project (": living doc - engine "), Ċĉ ĉ project (": living doc - extensions - api "), Ċĉ ĉ project (": living doc - format - g her kin "), Ċĉ ĉ project (": living doc - junit - engine "), Ċĉ ĉ project (": living doc - reports "), Ċĉ ĉ project (": living doc - repositories "), Ċĉ ĉ project (": living doc - repository - file "), Ċĉ ĉ project (": living doc - repository - git "), Ċĉ ĉ project (": living doc - repository - rest "), Ċĉ ĉ project (": living doc - repository - con fluence "), Ċĉ ĉ project (": living doc - results "), Ċĉ ĉ project (": living doc - testdata ") Ċ ĉ ) Ċ ) Ċ Ċ val Ġliving doc Test Projects Ġby Ġextra ( Ċ ĉ listOf ( Ċĉ ĉ project (": living doc - tests ") Ċ ĉ ) Ċ ) Ċ Ċ val Ġkotlin Projects Ġby Ġextra ( living doc Kotlin Projects Ġ+ Ġliving doc Test Projects ) Ċ Ċ all projects Ġ{ Ċ ĉ apply ( plugin Ġ= Ġ" idea ") Ċ ĉ apply ( plugin Ġ= Ġ" com . diff plug . gradle . spot less ") Ċ ĉ apply ( plugin Ġ= Ġ" jac oco ") ĊĊ ĉ group Ġ= Ġ" org . living doc " Ċ ĉ version Ġ= Ġ" 2 . 0 - SNAPSHOT " ĊĊ ĉ repositories Ġ{ Ċĉ ĉ maven Central () Ċĉ ĉ j center () Ċ ĉ } Ċ } Ċ Ċ sub projects Ġ{ Ċ ĉ plugin Manager . with Plugin (" java ") Ġ{ Ċĉ ĉ spot less Ġ{ Ċĉĉ ĉ java Ġ{ Ċĉĉĉ ĉ remove Unused Imports () Ċĉĉĉ ĉ trim Trailing Whitespace () Ċĉĉĉ ĉ end With New line () Ċĉĉ ĉ } Ċĉ ĉ } Ċ ĉ } ĊĊ ĉ plugin Manager . with Plugin (" kotlin ") Ġ{ Ċĉ ĉ spot less Ġ{ Ċĉĉ ĉ kotlin Ġ{ Ċĉĉĉ ĉ kt lint ( Versions . kt lint ) Ċĉĉĉ ĉ trim Trailing Whitespace () Ċĉĉĉ ĉ end With New line () Ċĉĉ ĉ } Ċĉ ĉ } Ċ ĉ } ĊĊ ĉ if Ġ( project Ġin Ġliving doc Kotlin Projects ) Ġ{ Ċĉ ĉ apply ( plugin Ġ= Ġ" io . gitlab . art urb os ch . de te kt ") ĊĊĉ ĉ de te kt Ġ{ Ċĉĉ ĉ tool Version Ġ= ĠVersions . de te kt Version ĊĊĉĉ ĉ val Ġconfig File Ġ= Ġfile ("${ project Dir }/ de te kt - config . yml ") Ċĉĉ ĉ val Ġroot ConfigFile Ġ= Ġfile ("${ root Project . project Dir }/ de te kt - config . yml ") ĊĊĉĉ ĉ val Ġconfig List Ġ= Ġmutable ListOf ( root ConfigFile ) Ċĉĉ ĉ if Ġ( configFile . exists ()) Ġ{ Ċĉĉĉ ĉ config List . add ( configFile ) Ċĉĉ ĉ } ĊĊĉĉ ĉ build Up on Default Config Ġ= Ġtrue Ċĉĉ ĉ config Ġ= Ġfiles ( config List ) Ċĉĉ ĉ parallel Ġ= Ġtrue Ċĉĉ ĉ reports Ġ{ Ċĉĉĉ ĉ xml . enabled Ġ= Ġfalse Ċĉĉĉ ĉ html Ġ{ Ċĉĉĉĉ ĉ enabled Ġ= Ġtrue Ċĉĉĉĉ ĉ destination Ġ= Ġfile ("${ root Project . build Dir }/ reports / de te kt /${ project . name }. html ") Ċĉĉĉ ĉ } Ċĉĉ ĉ } Ċĉ ĉ } ĊĊĉ ĉ tasks . with Type < Delete > Ġ{ Ċĉĉ ĉ delete ( root Project . build Dir ) Ċĉ ĉ } Ċ ĉ } Ċ } Ċ Ċ spot less Ġ{ Ċ ĉ format (" misc ") Ġ{ Ċĉ ĉ target (" ** /*. gradle ", Ġ"** /*. gradle . k ts ", Ġ"** /*. gitignore ") Ċĉ ĉ target Exclude (" **/ build /** ") Ċĉ ĉ indent With Tabs () Ċĉ ĉ trim Trailing Whitespace () Ċĉ ĉ end With New line () Ċ ĉ } Ċ ĉ format (" documentation ") Ġ{ Ċĉ ĉ target (" ** /*. adoc ", Ġ"** /*. md ") Ċĉ ĉ trim Trailing Whitespace () Ċĉ ĉ end With New line () Ċ ĉ } Ċ } Ċ Ċ tasks . create < org . jetbrains . dok ka . gradle . D ok ka Task >(" ag gregated D ok ka ") Ġ{ ĊĊ ĉ output Format Ġ= Ġ" javadoc " Ċ ĉ output Directory Ġ= Ġ"$ build Dir / dok ka " ĊĊ ĉ sub Projects Ġ= Ġsub projects . map Ġ{ Ġit . path . substring ( 1 ) Ġ} Ċ } Ċ Ċ tasks . create < J aco co Report >(" code Coverage Report ") Ġ{ Ċ ĉ execution Data ( file Tree ( project . rootDir . absolute Path ). include (" **/ build / jac oco /*. exec ")) ĊĊ ĉ sub projects . on Each Ġ{ Ċĉ ĉ it . plugin Manager . with Plugin (" java ") Ġ{ Ċĉĉ ĉ source Sets ( it . the < Source Set Container >() [" main "]) Ċĉ ĉ } ĊĊĉ ĉ it . plugin Manager . with Plugin (" kotlin ") Ġ{ Ċĉĉ ĉ source Sets ( it . the < Source Set Container >() [" main "]) Ċĉ ĉ } Ċ ĉ } ĊĊ ĉ reports Ġ{ Ċĉ ĉ csv . isEnabled Ġ= Ġtrue Ċĉ ĉ xml . isEnabled Ġ= Ġfalse Ċĉ ĉ html . isEnabled Ġ= Ġtrue Ċĉ ĉ csv . destination Ġ= Ġfile ("${ build Dir }/ reports / jac oco / jac oco . csv ") Ċĉ ĉ html . destination Ġ= Ġfile ("${ build Dir }/ reports / jac oco ") Ċ ĉ } ĊĊ ĉ depends On ( project . get Tasks ByName (" test ", Ġtrue )) Ċ } Ċ