Having troubles when trying to replace the deprecated withConvention for KotlinSourceSet

I’ve found a way likely to achieve this, but it works for other types instead of kotlin.
Could it be because there isn’t a SourceDirectorySet for kotlin?

Without digging into it too much more, it looks like the Kotlin plugin adds a kotlin extension to the existing source sets. So I think you’ll have to configure that extension instead. I’m not an expert in Gradle Kotlin DSL or the Kotlin plugin, so this is just my best guess from looking at the plugin source.

Thanks a lot for your help anyaway! :smiling_face: