10/10/2018, 11:50 PM
I've got a question about the Gradle Kotlin DSL. I'm trying to generate a sources jar, so I'm using both this and this However, in my build script, the tasks.registering function is not recognized, so I have switched it to creating for now. In addition, the sourceSets variable is not being recognized either and causes this error
Copy code
Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
                        public val KotlinJvmProjectExtension.sourceSets: NamedDomainObjectContainer<DefaultKotlinSourceSet> defined in org.gradle.kotlin.dsl