I'm not quite sure about this - there's usually a directory under /build/generated
, but I'm wondering if there is a standard location that's safe to write source files to which also will be included in the compilation? Environment variables? I couldn't find anything in the docs.
If it matters, this use case is a single kotlin file which I generate as a separate task based off of configs and want to include in java/kotlin compilation.
buildSrc
it's a place for custom plugins, and it's a special Gradle folder as well that is read before the build.As for generated sources, you can just define a source set for it.