Closure to make lazy dependency on subprojects.