How to create gradle.lockfile for all subprojects in multi project setup

I am trying to build elasticsearch repository (https://github.com/elastic/elasticsearch/tree/v7.9.1) . It does not have gradle.lockfile generated for root project or any sub project. It has around 337 subprojects. How to create gradle.lockfile for all subprojects in this multi project setup. This is scan report for root project https://scans.gradle.com/s/ch26udb4qvisu.

I followed this article https://peterevans.dev/posts/how-to-automate-gradle-dependency-updates-with-github-actions/
but it generates gradle.lockfile in just root project.

Do i need to manually go and generate gradle.lockfile for every subproject. Is there any way to generate all files with one command or script.