Set version of dependencies in document