Ensure that sourceSet tasks are executed when accessing library api