include common source directories in gradles 'up-to-date' decision