Maybe a bit offtopic, but I'm studying sources of ...
# squarelibraries
d
Maybe a bit offtopic, but I'm studying sources of SqlDelight while writing some custom code generation plugin (txt -> kotlin) and I successfully generate a kt file in
build/generated/code/commonMain/.../File.kt
, but I struggle to find how do I mark this "commonMain" as a source root from within my plugin. I need to do this for KMP/android/kotlin projects. I found that sqldelight-gradle-plugin uses
Source
data class but where exactly this "mark as source root" happens, I cannot find. If anyone would point me either to the Gradle API to use or to the place in sqldelight's souces to study, I'd be grateful.