import Ġcom . datadog . gradle . plugin . apis urface . Api Surface Plugin Ċ import Ġorg . jetbrains . kotlin . gradle . tasks . Kotlin Compile Ċ Ċ val Ġgenerate Trace Models Task Name Ġ= Ġ" generate Trace Models FromJson " Ċ Ċ tasks . register ( ĊĠĠĠ Ġgenerate Trace Models Task Name , ĊĠĠĠ Ġcom . datadog . gradle . plugin . json schema . Generate Json Schema Task :: class . java Ċ ) Ġ{ ĊĠĠĠ Ġinput DirPath Ġ= Ġ" src / main / json / trace " ĊĠĠĠ Ġtarget PackageName Ġ= Ġ" com . datadog . android . tracing . model " Ċ } Ċ Ċ after Evaluate Ġ{ ĊĠĠĠ Ġtasks . find ByName ( Api Surface Plugin . TASK _ GEN _ API _ SURFACE ) ĊĠĠĠĠĠĠĠ Ġ? . depends On ( generate Trace Models Task Name ) ĊĠĠĠ Ġtasks . with Type ( Kotlin Compile :: class . java ) Ġ{ Ġdepends On ( generate Trace Models Task Name ) Ġ} Ċ } Ċ