I want to write a Gradle plugin that need to access the source sets.
In a normal Kotlin-JVM project, I can get the sourceSets during task execution in the following way:
val sourceSets = project.properties["sourceSets"] as SourceSetContainer
This gives me “main” and “test” source sets.
But in a Koltin Multiplatform project, the sourceSets field is empty during task execution.
Is there another way to get the source sets of the Koltin Multiplatform plugin? Or do I need to respect some special contains?