How do I access the extension functions on the `So...
# gradle
a
How do I access the extension functions on the
SourceSetContainer
when creating my own plugin? I have access to the
org.gradle.kotlin.dsl
package, but am unable to access
public fun org.gradle.api.tasks.SourceSet.kotlin
. I have
kotlin-dsl
plugin 8.5.
h
You have to cast a SourceSet to ExtensionAware and call its kotlin extension as KotlinSourceSet. You can take a look at the generated accessor when applying the Kotlin plugin.
🎉 1