This looks reasonable, but I'm unclear as to the role that sourceDirectories plays in terms of settings i.e. how should we use it, or is it just there for completeness?