This message was deleted.
# community-support
s
This message was deleted.
t
Maybe use
sourceSets.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.
r
exactly what I was looking for. somehow I missed that one 🙂 thanks @Thomas Broyer that api can you some cleanup 🤣
t
I see this in the javadoc for
getSourceDirectories
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?
💯 2