Add Gradle projects as Git submodules
git submodule add git@example.org/foo.git
git submodule add git@example.com/bar.git
git commit -m "Add submodules"
Clone the repository, update and push the submodules
git clone https://github.com/veita/gradle-projects.git ; cd gradle-projects
./update-gradle-all.sh $NEW_GRADLE_VERSION
./push-all.sh
Optionally save the repository state
git add --all
git commit -m "Save the current state"