package Ġkim . je ong hy eon . simple architecture . plugin . task Ċ Ċ import Ġkim . je ong hy eon . simple architecture . plugin . util . generated Source Set Path Ċ import Ġorg . gradle . api . Project Ċ import Ġorg . gradle . api . tasks . Delete Ċ import Ġorg . gradle . api . tasks . Task Provider Ċ import Ġjava . io . File Ċ Ċ fun ĠProject . get Delete Generated Source Task ( compile Source SetName : ĠString ): ĠTask Provider < Delete > Ġ= ĊĠĠĠ Ġtasks . register (" delete ${ compile Source SetName . capitalize ()} Api Impl ", ĠDelete :: class . java ) Ġ{ ĊĠĠĠĠĠĠĠ Ġdelete ( File ( generated Source Set Path ( project . build Dir . toString (), Ġcompile Source SetName ))) ĊĠĠĠĠĠĠĠ Ġdescription Ġ= Ġ" Delete Ġ${ compile Source SetName } Ġgenerated Ġsource Ġset Ġbefore Ġcompile Ġ" ĊĠĠĠĠĠĠĠ Ġ// todo Ġconsider Ġnot Ġto Ġdelete Ġif Ġsource Ġis Ġup - to - date ĊĠĠĠ Ġ}