I am using the following code:
java.sourceSets["main"].java {
srcDir("src/main/extraSource")
}
works perfectly in gradle 4.9, but in 4.10 rc1 gives the following error:
Line 5: java.sourceSets["main"].java {
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public val Project.sourceSets: SourceSetContainer defined in org.gradle.kotlin.dsl
Any ideas? Has there been a change to what is needed? Many other answers (eg. this one and every suggested answer to this question) will also need updates if this has changed