Slackbot
01/17/2023, 8:07 AMThomas Broyer
01/17/2023, 8:50 AMsourceSets.main.java.sourceDirectories
rather than srcDirs
, as sourceDirectories
maintains dependency information, so the task resolving the source dirs should have an implicit dependency on the tasks that produce those source dirs.René
01/17/2023, 10:16 AMtony
01/17/2023, 11:32 AMgetSourceDirectories
Generally, it is preferable to use this method instead of getSrcDirs()I feel like the javadoc for
getSrcDirs
should have a similar warning, and it should also be deprecated maybe?