1*55e87721SMatt Gilbride# Generation 2*55e87721SMatt Gilbride 3*55e87721SMatt Gilbride## Using scripts independently 4*55e87721SMatt Gilbride 5*55e87721SMatt GilbrideMost of the scripts in this directory can be used independently to do file updates across all modules. 6*55e87721SMatt GilbrideThey are also used and tested by `merge_repository.sh`. 7*55e87721SMatt Gilbride 8*55e87721SMatt Gilbride## Merge repository into the monorepo 9*55e87721SMatt Gilbride 10*55e87721SMatt GilbrideBuilt by running [merge_repository.sh](merge_repository.sh). 11*55e87721SMatt Gilbride 12*55e87721SMatt GilbrideThe script creates a new Git repository in `monorepo/google-cloud-java` by merging 13*55e87721SMatt Gilbridethe repositories in the input. 14*55e87721SMatt GilbrideAfter running the script locally, you can `cd` into the generated repository and build the project. 15*55e87721SMatt Gilbride 16*55e87721SMatt Gilbride```shell 17*55e87721SMatt Gilbridecd monorepo/google-cloud-java 18*55e87721SMatt Gilbridemvn test -T C1 -B 19*55e87721SMatt Gilbride``` 20*55e87721SMatt Gilbride 21*55e87721SMatt Gilbride### Input 22*55e87721SMatt Gilbride 23*55e87721SMatt GilbrideThe file `repos.txt` lists all the split repos to include in the aggregation into the monorepo. 24*55e87721SMatt Gilbride 25*55e87721SMatt Gilbride### Output 26*55e87721SMatt Gilbride 27*55e87721SMatt GilbrideSee: [bootstrap_output](https://github.com/googleapis/google-cloud-java/tree/bootstrap_output) branch. 28*55e87721SMatt Gilbride 29*55e87721SMatt Gilbride### Diffs 30*55e87721SMatt Gilbride 31*55e87721SMatt GilbrideThe workflow also generates a diff between the current `main` branch and the generated aggregation of modules from split repos. 32*55e87721SMatt GilbrideSee: `boostrap_outout_diff_{event}` branches. 33