import Ġorg . gradle . api . plugins . Java Plugin Convention Ċ import Ġorg . gradle . api . tasks . Source Set Ċ import Ġorg . gradle . api . tasks . compile . Java Compile Ċ import Ġorg . gradle . kotlin . dsl . the Ċ Ċ open Ġclass ĠAsc ii Doc Gen Task Ġ: ĠJava Compile () Ġ{ ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġsource Set Ġ= Ġproject . the < Java Plugin Convention >(). source Sets . get ByName ( Source Set . MAIN _ SOURCE _ SET _ NAME ) ĊĠĠĠĠĠĠĠ Ġgroup Ġ= Ġ" documentation " ĊĠĠĠĠĠĠĠ Ġsource Ġ= Ġsource Set . java ĊĠĠĠĠĠĠĠ Ġclasspath Ġ= Ġsource Set . compile Classpath ĊĠĠĠĠĠĠĠ Ġdestination Dir Ġ= Ġproject . file ("${ project . project Dir }/ src / main / resources ") ĊĠĠĠĠĠĠĠ Ġoptions . annotation Processor Path Ġ= Ġsource Set . compile Classpath ĊĠĠĠĠĠĠĠ Ġoptions . compiler Args Ġ= ĠlistOf ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ"- proc : only ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ"- processor ", Ġ" io . vertx . doc gen . Java Doc Gen Processor ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ"- A doc gen . output =${ project . build Dir }/ asci id oc ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ"- A doc gen . source =${ destination Dir }/ index . adoc " ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} Ċ } Ċ