Slackbot
09/18/2023, 12:10 AMVampire
09/18/2023, 2:52 AMsrcDirs
you just add new ones.
If you use setSrcDirs
you should be able to empty it I think.archie
09/24/2023, 2:22 PMarchie
09/24/2023, 2:26 PMsourceSets {
main {
java {
setSrcDirs()
}
}
}
I'll test itVampire
09/25/2023, 10:45 AMAlso apologies since I didn't exactly know where to post this question.If in doubt / no appropriate specific channel, then #CAHSN3LDN is the place to go. 🙂
Never mind it exists like this.
sourceSets {
main {
java.setSrcDirs(emptyList<Any>())
}
}
and
sourceSets {
main {
java {
setSrcDirs(emptyList<Any>())
}
}
}
should both work the same, it's just syntax sugar.
While
sourceSets {
main {
java.setSrcDirs()
}
}
and
sourceSets {
main {
java {
setSrcDirs()
}
}
}
should both not work as both miss the argument.