Ċ dependencies Ġ{ ĊĠĠĠ Ġcompile ( project (": runtime ")) Ċ } Ċ Ċ val Ġcodegen Output Dir Ġ= Ġproject (": codegen "). build Dir . resolve (" generated "). resolve (" api ") Ċ val Ġcompile Kotlin Ġby Ġtasks Ċ compile Kotlin . depends On (": codegen : run Code gen ") Ċ Ċ val Ġmain Ġby Ġkotlin . source Sets Ċ main . apply Ġ{ ĊĠĠĠ Ġthis . kotlin . src Dir ( codegen Output Dir ) Ċ }