mazorius
06/15/2021, 3:41 PMkotlin-dsl
plugin and have no sourceSets.register("…").kotlin {}
I already asked that in Gradle and they give me the following input:
The Groovy plugin (and the other supported ones) now add the source directory set as extension to the source set like
sourceSet.getExtensions().add(GroovySourceDirectorySet.class, "groovy", groovySourceSet.getGroovy());
Due to that the accessor generation for Kotlin DSL build scripts and precompiled plugins can generate theaccessor with which you can configure the source directory set.groovy
So to support Kotlin, the Kotlin Gradle plugin should do the same and add an according extension.
Javier
06/15/2021, 5:28 PMVampire
06/16/2021, 10:08 AMsourceSets { main { java { /* ... */ } } }
and sourceSets { main { groovy { /* ... */ } } }
, but not sourceSets { main { kotlin { /* ... */ } } }
, don't you think?Javier
06/16/2021, 11:37 AMVampire
06/16/2021, 2:09 PMJavier
06/17/2021, 1:36 PMVampire
06/17/2021, 2:23 PMkotlin
extension and thus accessor. 🙂Javier
06/17/2021, 2:26 PMVampire
06/17/2021, 2:30 PMkotlin
one yet.
That's what Ron is complaining / wondering about.Vampire
06/23/2021, 11:22 AM